aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2008-03-01 15:03:14 -0500
committerJames Morris <jmorris@namei.org>2008-04-18 19:53:46 -0400
commit9d57a7f9e23dc30783d245280fc9907cf2c87837 (patch)
tree508b81e213f5dca1097ccf0ece8ba092b168607b /security/selinux/hooks.c
parentd7a96f3a1ae279a2129653d6cb18d722f2f00f91 (diff)
SELinux: use new audit hooks, remove redundant exports
Setup the new Audit LSM hooks for SELinux. Remove the now redundant exported SELinux Audit interface. Audit: Export 'audit_krule' and 'audit_field' to the public since their internals are needed by the implementation of the new LSM hook 'audit_rule_known'. 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>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index bfffaa52e0cb..a2f7e9cf78c5 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -83,6 +83,7 @@
83#include "netport.h" 83#include "netport.h"
84#include "xfrm.h" 84#include "xfrm.h"
85#include "netlabel.h" 85#include "netlabel.h"
86#include "audit.h"
86 87
87#define XATTR_SELINUX_SUFFIX "selinux" 88#define XATTR_SELINUX_SUFFIX "selinux"
88#define XATTR_NAME_SELINUX XATTR_SECURITY_PREFIX XATTR_SELINUX_SUFFIX 89#define XATTR_NAME_SELINUX XATTR_SECURITY_PREFIX XATTR_SELINUX_SUFFIX
@@ -5478,6 +5479,13 @@ static struct security_operations selinux_ops = {
5478 .key_free = selinux_key_free, 5479 .key_free = selinux_key_free,
5479 .key_permission = selinux_key_permission, 5480 .key_permission = selinux_key_permission,
5480#endif 5481#endif
5482
5483#ifdef CONFIG_AUDIT
5484 .audit_rule_init = selinux_audit_rule_init,
5485 .audit_rule_known = selinux_audit_rule_known,
5486 .audit_rule_match = selinux_audit_rule_match,
5487 .audit_rule_free = selinux_audit_rule_free,
5488#endif
5481}; 5489};
5482 5490
5483static __init int selinux_init(void) 5491static __init int selinux_init(void)