lkml.org 
[lkml]   [2017]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 03/27] Enforce module signatures if the kernel is locked down
    From
    Date
    If the kernel is locked down, require that all modules have valid
    signatures that we can verify.

    Signed-off-by: David Howells <dhowells@redhat.com>
    ---

    kernel/module.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/kernel/module.c b/kernel/module.c
    index de66ec825992..3d9a3270c179 100644
    --- a/kernel/module.c
    +++ b/kernel/module.c
    @@ -2781,7 +2781,8 @@ 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 && !sig_enforce &&
    + !kernel_is_locked_down("Loading of unsigned modules"))
    err = 0;

    return err;
    \
     
     \ /
      Last update: 2017-10-22 17:26    [W:2.298 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site