summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/Kconfig
diff options
context:
space:
mode:
authorDmitry Kasatkin2014-11-05 16:01:16 +0100
committerMimi Zohar2014-11-18 05:12:01 +0100
commitc57782c13ecd7e7aca66cbf0139ad2a72317dc81 (patch)
tree4addf9930efefacc0394ffca22b56cb4e9083fe4 /security/integrity/ima/Kconfig
parentintegrity: provide a hook to load keys when rootfs is ready (diff)
downloadkernel-qcow2-linux-c57782c13ecd7e7aca66cbf0139ad2a72317dc81.tar.gz
kernel-qcow2-linux-c57782c13ecd7e7aca66cbf0139ad2a72317dc81.tar.xz
kernel-qcow2-linux-c57782c13ecd7e7aca66cbf0139ad2a72317dc81.zip
ima: require signature based appraisal
This patch provides CONFIG_IMA_APPRAISE_SIGNED_INIT kernel configuration option to force IMA appraisal using signatures. This is useful, when EVM key is not initialized yet and we want securely initialize integrity or any other functionality. It forces embedded policy to require signature. Signed initialization script can initialize EVM key, update the IMA policy and change further requirement of everything to be signed. Changes in v3: * kernel parameter fixed to configuration option in the patch description Changes in v2: * policy change of this patch separated from the key loading patch Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/ima/Kconfig')
-rw-r--r--security/integrity/ima/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig
index b0840f9a552f..b80a93ec1ccc 100644
--- a/security/integrity/ima/Kconfig
+++ b/security/integrity/ima/Kconfig
@@ -149,3 +149,10 @@ config IMA_X509_PATH
default "/etc/keys/x509_ima.der"
help
This option defines IMA X509 certificate path.
+
+config IMA_APPRAISE_SIGNED_INIT
+ bool "Require signed user-space initialization"
+ depends on IMA_LOAD_X509
+ default n
+ help
+ This option requires user-space init to be signed.