summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_main.c
diff options
context:
space:
mode:
authorMimi Zohar2016-01-15 16:17:12 +0100
committerMimi Zohar2016-02-21 15:34:22 +0100
commit19f8a84713edc1d27ea05be00effb97b8f1ef207 (patch)
tree1bc29beeafe8358eeffcbd807ac59f6b45868695 /security/integrity/ima/ima_main.c
parentima: load policy using path (diff)
downloadkernel-qcow2-linux-19f8a84713edc1d27ea05be00effb97b8f1ef207.tar.gz
kernel-qcow2-linux-19f8a84713edc1d27ea05be00effb97b8f1ef207.tar.xz
kernel-qcow2-linux-19f8a84713edc1d27ea05be00effb97b8f1ef207.zip
ima: measure and appraise the IMA policy itself
Add support for measuring and appraising the IMA policy itself. Changelog v4: - use braces on both if/else branches, even if single line on one of the branches - Dmitry - Use the id mapping - Dmitry Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Acked-by: Petko Manolov <petkan@mip-labs.com> Acked-by: Dmitry Kasatkin <dmitry.kasatkin@huawei.com>
Diffstat (limited to 'security/integrity/ima/ima_main.c')
-rw-r--r--security/integrity/ima/ima_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c
index f76488162c1e..391f41751021 100644
--- a/security/integrity/ima/ima_main.c
+++ b/security/integrity/ima/ima_main.c
@@ -344,6 +344,7 @@ static int read_idmap[READING_MAX_ID] = {
[READING_MODULE] = MODULE_CHECK,
[READING_KEXEC_IMAGE] = KEXEC_KERNEL_CHECK,
[READING_KEXEC_INITRAMFS] = KEXEC_INITRAMFS_CHECK,
+ [READING_POLICY] = POLICY_CHECK
};
/**