]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: (efi-lockdown) kexec_file: Disable at runtime if securelevel has been set
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Wed, 23 Nov 2016 13:49:19 +0000 (13:49 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:33:59 +0000 (07:33 -0500)
commita5e8d884d3b25c6bb7182315668e868d9151b217
tree7913ea908909233f47b004590757c47a9276b2b0
parent0328b043e7256823e15694364fdafb70f60322e4
UBUNTU: SAUCE: (efi-lockdown) kexec_file: Disable at runtime if securelevel has been set

When KEXEC_VERIFY_SIG is not enabled, kernel should not loads image
through kexec_file systemcall if securelevel has been set.

This code was showed in Matthew's patch but not in git:
https://lkml.org/lkml/2015/3/13/778

Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: David Howells <dhowells@redhat.com>
(cherry picked from commit db0188224b6d4c9cd73205631fe8e30810fb19ab
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/kexec_file.c