diff options
author | Jiri Bohac <jbohac@suse.cz> | 2019-08-20 03:17:45 +0300 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2019-08-20 07:54:15 +0300 |
commit | 155bdd30af17e90941589b5db4dab9a29b28c112 (patch) | |
tree | d98bbf8e1a8cc25764dfa019a0c1e3efd446a804 /security/lockdown | |
parent | 99d5cadfde2b1acb7650021df5abaa5ec447dd10 (diff) | |
download | linux-155bdd30af17e90941589b5db4dab9a29b28c112.tar.xz |
kexec_file: Restrict at runtime if the kernel is locked down
When KEXEC_SIG is not enabled, kernel should not load images through
kexec_file systemcall if the kernel is locked down.
[Modified by David Howells to fit with modifications to the previous patch
and to return -EPERM if the kernel is locked down for consistency with
other lockdowns. Modified by Matthew Garrett to remove the IMA
integration, which will be replaced by integrating with the IMA
architecture policy patches.]
Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Matthew Garrett <mjg59@google.com>
cc: kexec@lists.infradead.org
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/lockdown')
0 files changed, 0 insertions, 0 deletions