diff options
author | Philipp Rudo <prudo@linux.ibm.com> | 2019-03-26 15:45:53 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-04-29 10:44:03 +0200 |
commit | 268a78404973594d1a7ec3a2b6a2474e0543a435 (patch) | |
tree | a8eefe8904c63e1b342e226a263d749f60aa3da0 /arch/s390/kernel/ima_arch.c | |
parent | s390/kexec_file: Create ipl report and pass to next kernel (diff) | |
download | linux-268a78404973594d1a7ec3a2b6a2474e0543a435.tar.xz linux-268a78404973594d1a7ec3a2b6a2474e0543a435.zip |
s390/kexec_file: Disable kexec_load when IPLed secure
A kernel loaded via kexec_load cannot be verified. Thus disable kexec_load
systemcall in kernels which where IPLed securely. Use the IMA mechanism to
do so.
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/ima_arch.c')
-rw-r--r-- | arch/s390/kernel/ima_arch.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/s390/kernel/ima_arch.c b/arch/s390/kernel/ima_arch.c new file mode 100644 index 000000000000..f3c3e6e1c5d3 --- /dev/null +++ b/arch/s390/kernel/ima_arch.c @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include <linux/ima.h> +#include <asm/boot_data.h> + +bool arch_ima_get_secureboot(void) +{ + return ipl_secure_flag; +} + +const char * const *arch_get_ima_policy(void) +{ + return NULL; +} |