Skip to content

Commit 2c8fd26

Browse files
jiazhang0Jessica Yu
authored andcommitted
module: Do not access sig_enforce directly
Call is_module_sig_enforced() instead. Signed-off-by: Jia Zhang <[email protected]> Signed-off-by: Jessica Yu <[email protected]>
1 parent 60cc43f commit 2c8fd26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2785,7 +2785,7 @@ static int module_sig_check(struct load_info *info, int flags)
27852785
}
27862786

27872787
/* Not having a signature is only an error if we're strict. */
2788-
if (err == -ENOKEY && !sig_enforce)
2788+
if (err == -ENOKEY && !is_module_sig_enforced())
27892789
err = 0;
27902790

27912791
return err;

0 commit comments

Comments
 (0)