]> Git Repo - linux.git/commit
kexec_file: Restrict at runtime if the kernel is locked down
authorJiri Bohac <[email protected]>
Tue, 20 Aug 2019 00:17:45 +0000 (17:17 -0700)
committerJames Morris <[email protected]>
Tue, 20 Aug 2019 04:54:15 +0000 (21:54 -0700)
commit155bdd30af17e90941589b5db4dab9a29b28c112
treed98bbf8e1a8cc25764dfa019a0c1e3efd446a804
parent99d5cadfde2b1acb7650021df5abaa5ec447dd10
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 <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
cc: [email protected]
Signed-off-by: James Morris <[email protected]>
kernel/kexec_file.c
This page took 0.05314 seconds and 4 git commands to generate.