提交 2c8fd268 编写于 作者: jia zhang's avatar jia zhang 提交者: Jessica Yu

module: Do not access sig_enforce directly

Call is_module_sig_enforced() instead.
Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
Signed-off-by: NJessica Yu <jeyu@kernel.org>
上级 60cc43fc
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册