projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cc43f
)
module: Do not access sig_enforce directly
author
Jia Zhang
<zhang.jia@linux.alibaba.com>
Wed, 11 Apr 2018 03:53:33 +0000
(11:53 +0800)
committer
Jessica Yu
<jeyu@kernel.org>
Mon, 16 Apr 2018 21:46:03 +0000
(23:46 +0200)
Call is_module_sig_enforced() instead.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c
patch
|
blob
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index a6e43a5806a11391b6606b42cc972b13f9eb3828..f6954745848ed225922a64d850b13cd100c4d72d 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-2785,7
+2785,7
@@
static int module_sig_check(struct load_info *info, int flags)
}
/* Not having a signature is only an error if we're strict. */
- if (err == -ENOKEY && !
sig_enforce
)
+ if (err == -ENOKEY && !
is_module_sig_enforced()
)
err = 0;
return err;