diff options
| author | Saravana Kannan <[email protected]> | 2022-06-01 20:56:52 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-06-02 12:44:33 -0700 |
| commit | 73503963b715a64a44aa2b1c486114b917a17c73 (patch) | |
| tree | 07dd76aa191d7c8eda489d572b1363cd2877052e /kernel/module | |
| parent | c399c85d60a4295bd911d366399a97df2865fb86 (diff) | |
module: Fix prefix for module.sig_enforce module param
Commit cfc1d277891e ("module: Move all into module/") changed the prefix
of the module param by moving/renaming files. A later commit also moves
the module_param() into a different file, thereby changing the prefix
yet again.
This would break kernel cmdline compatibility and also userspace
compatibility at /sys/module/module/parameters/sig_enforce.
So, set the prefix back to "module.".
Fixes: cfc1d277891e ("module: Move all into module/")
Link: https://lore.kernel.org/lkml/[email protected]/
Cc: Christophe Leroy <[email protected]>
Cc: Aaron Tomlin <[email protected]>
Acked-by: Luis Chamberlain <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'kernel/module')
| -rw-r--r-- | kernel/module/signing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/module/signing.c b/kernel/module/signing.c index 85c8999dfecf..a2ff4242e623 100644 --- a/kernel/module/signing.c +++ b/kernel/module/signing.c @@ -16,6 +16,9 @@ #include <uapi/linux/module.h> #include "internal.h" +#undef MODULE_PARAM_PREFIX +#define MODULE_PARAM_PREFIX "module." + static bool sig_enforce = IS_ENABLED(CONFIG_MODULE_SIG_FORCE); module_param(sig_enforce, bool_enable_only, 0644); |