History

module: Do not access sig_enforce directly

Call is_module_sig_enforced() instead.

Jia Zhang committed 8 years ago

Commit 2c8fd261 parent 60cc43f1 file · +1 −1Browse files

Unified · Split

kernel/module.c+1−1
@@ -2785,7 +2785,7 @@ static int module_sig_check(struct load_info *info, int flags) · 2784 unmodified lines
2785 }2785 }
2786 2786
2787 /* Not having a signature is only an error if we're strict. */2787 /* 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())
2789 err = 0;2789 err = 0;
2790 2790
2791 return err;2791 return err;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t