mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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>
This commit is contained in:
parent
60cc43fc88
commit
2c8fd268f4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user