diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2009-02-12 12:54:14 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-02-12 17:27:56 -0500 |
commit | b53fab9d48e9bd9aeba0b500dec550becd981a91 (patch) | |
tree | 19e17d0aa255624bf6455ac35a5089ac550abdb6 /security/integrity/ima/Kconfig | |
parent | 35d50e60e8b12e4adc2fa317343a176d87294a72 (diff) |
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 <randy.dunlap@oracle.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/integrity/ima/Kconfig')
-rw-r--r-- | security/integrity/ima/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
49 | 49 | ||
50 | config IMA_LSM_RULES | 50 | config IMA_LSM_RULES |
51 | bool | 51 | bool |
52 | depends on IMA && (SECURITY_SELINUX || SECURITY_SMACK) | 52 | depends on IMA && AUDIT && (SECURITY_SELINUX || SECURITY_SMACK) |
53 | default y | 53 | default y |
54 | help | 54 | help |
55 | Disabling this option will disregard LSM based policy rules | 55 | Disabling this option will disregard LSM based policy rules. |