Call is_module_sig_enforced() instead.
Unified · Split
| @@ -2785,7 +2785,7 @@ static int module_sig_check(struct load_info *info, int flags) · 2784 unmodified lines | ||
| 2785 | 2785 | } |
| 2786 | 2786 | |
| 2787 | 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 | 2789 | err = 0; |
| 2790 | 2790 | |
| 2791 | 2791 | return err; |