Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c8fd268 authored by Jia Zhang's avatar Jia Zhang Committed by Jessica Yu
Browse files

module: Do not access sig_enforce directly



Call is_module_sig_enforced() instead.

Signed-off-by: default avatarJia Zhang <zhang.jia@linux.alibaba.com>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 60cc43fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;