OSDN Git Service

powerpc/configs/skiroot: Enable security features
authorJoel Stanley <joel@jms.id.au>
Tue, 21 Jan 2020 04:29:57 +0000 (15:29 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 31 Jan 2020 10:20:17 +0000 (21:20 +1100)
commit579baeece66ef9360da7d815fd328faf271a3008
treef5c63e3cb0d3784e15ec2dd5525fef65fa1be06b
parentcdc7b23f1e90983cb5fb0c9a0a5e6e08b5d71563
powerpc/configs/skiroot: Enable security features

This turns on HARDENED_USERCOPY with HARDENED_USERCOPY_PAGESPAN, and
FORTIFY_SOURCE.

It also enables SECURITY_LOCKDOWN_LSM with _EARLY and
LOCK_DOWN_KERNEL_FORCE_INTEGRITY options enabled. This still allows
xmon to be used in read-only mode.

MODULE_SIG is selected by lockdown, so it is still enabled.

Because we're setting LOCK_DOWN_KERNELFORCE_INTEGRITY=y we also need
to enable KEXEC_FILE=y so that kexec continues to work.

Signed-off-by: Joel Stanley <joel@jms.id.au>
[mpe: Switch to lockdown integrity mode per oohal, enable KEXEC_FILE
      as reported by jms]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200121043000.16212-7-mpe@ellerman.id.au
arch/powerpc/configs/skiroot_defconfig