ima: fix build error
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 12 Feb 2009 17:54:14 +0000 (09:54 -0800)
committerJames Morris <jmorris@namei.org>
Thu, 12 Feb 2009 22:27:56 +0000 (09:27 +1100)
commitb53fab9d48e9bd9aeba0b500dec550becd981a91
tree19e17d0aa255624bf6455ac35a5089ac550abdb6
parent35d50e60e8b12e4adc2fa317343a176d87294a72
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>
security/integrity/ima/Kconfig