LSM/Audit: Introduce generic Audit LSM hooks
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 1 Mar 2008 20:00:05 +0000 (22:00 +0200)
committerJames Morris <jmorris@namei.org>
Fri, 18 Apr 2008 23:52:36 +0000 (09:52 +1000)
commit03d37d25e0f91b28c4b6d002be6221f1af4b19d8
treede56538f7b6e7623d7cee2b0fcdc8f9764957252
parent6b89a74be0fbbc6cc639d5cf7dcf8e6ee0f120a7
LSM/Audit: Introduce generic Audit LSM hooks

Introduce a generic Audit interface for security modules
by adding the following new LSM hooks:

audit_rule_init(field, op, rulestr, lsmrule)
audit_rule_known(krule)
audit_rule_match(secid, field, op, rule, actx)
audit_rule_free(rule)

Those hooks are only available if CONFIG_AUDIT is enabled.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Acked-by: James Morris <jmorris@namei.org>
Reviewed-by: Paul Moore <paul.moore@hp.com>
include/linux/security.h
security/dummy.c
security/security.c