diff options
author | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-04-11 11:53:33 +0800 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2018-04-16 23:46:03 +0200 |
commit | 2c8fd268f41884bef5d37acda08d8006dc7da0ea (patch) | |
tree | 76fe05dfecc2a4a3d0289eae9713d09b788d7216 | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) |
module: Do not access sig_enforce directly
Call is_module_sig_enforced() instead.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index a6e43a5806a1..f6954745848e 100644 --- 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; |