Messages in this thread | | | Subject | Re: [PATCH 1/4] module: Do not access sig_enforce directly | From | Jia Zhang <> | Date | Mon, 5 Mar 2018 13:32:10 +0800 |
| |
Hi Jessica,
Could you review this patch series?
Thanks, Jia
On 2018/3/1 下午5:09, Jia Zhang wrote: > Call is_module_sig_enforced() instead. > > Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com> > --- > kernel/module.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/module.c b/kernel/module.c > index ad2d420..003d0ab 100644 > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -2789,7 +2789,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; >
| |