From: Randy Dunlap Date: Thu, 12 Feb 2009 17:54:14 +0000 (-0800) Subject: ima: fix build error X-Git-Tag: firefly_0821_release~15205^2~34 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b53fab9d48e9bd9aeba0b500dec550becd981a91;p=firefly-linux-kernel-4.4.55.git ima: fix build error IMA_LSM_RULES requires AUDIT. This is automatic if SECURITY_SELINUX=y but not when SECURITY_SMACK=y (and SECURITY_SELINUX=n), so make the dependency explicit. This fixes the following build error: security/integrity/ima/ima_policy.c:111:error: implicit declaration of function 'security_audit_rule_match' security/integrity/ima/ima_policy.c:230:error: implicit declaration of function 'security_audit_rule_init' Signed-off-by: Randy Dunlap Acked-by: Mimi Zohar Signed-off-by: James Morris --- diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig index 3d2b6ee778a0..53d9764e8f09 100644 --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -49,7 +49,7 @@ config IMA_AUDIT config IMA_LSM_RULES bool - depends on IMA && (SECURITY_SELINUX || SECURITY_SMACK) + depends on IMA && AUDIT && (SECURITY_SELINUX || SECURITY_SMACK) default y help - Disabling this option will disregard LSM based policy rules + Disabling this option will disregard LSM based policy rules.