diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2012-03-07 09:17:14 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-04-09 12:23:44 -0400 |
commit | 562c99f20d989f222138dddfd71e275bfb3665de (patch) | |
tree | 47743a88f3aed8b77f79899f45409a597ab77263 /security/selinux/ss | |
parent | 0b36e44cc680b355f0d1b34002b2a10c9e1cae60 (diff) |
SELinux: avc: remove the useless fields in avc_add_callback
avc_add_callback now just used for registering reset functions
in initcalls, and the callback functions just did reset operations.
So, reducing the arguments to only one event is enough now.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux/ss')
-rw-r--r-- | security/selinux/ss/services.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 9b7e7ed54e7e..4321b8fc8863 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -3044,8 +3044,7 @@ out: | |||
3044 | 3044 | ||
3045 | static int (*aurule_callback)(void) = audit_update_lsm_rules; | 3045 | static int (*aurule_callback)(void) = audit_update_lsm_rules; |
3046 | 3046 | ||
3047 | static int aurule_avc_callback(u32 event, u32 ssid, u32 tsid, | 3047 | static int aurule_avc_callback(u32 event) |
3048 | u16 class, u32 perms, u32 *retained) | ||
3049 | { | 3048 | { |
3050 | int err = 0; | 3049 | int err = 0; |
3051 | 3050 | ||
@@ -3058,8 +3057,7 @@ static int __init aurule_init(void) | |||
3058 | { | 3057 | { |
3059 | int err; | 3058 | int err; |
3060 | 3059 | ||
3061 | err = avc_add_callback(aurule_avc_callback, AVC_CALLBACK_RESET, | 3060 | err = avc_add_callback(aurule_avc_callback, AVC_CALLBACK_RESET); |
3062 | SECSID_NULL, SECSID_NULL, SECCLASS_NULL, 0); | ||
3063 | if (err) | 3061 | if (err) |
3064 | panic("avc_add_callback() failed, error %d\n", err); | 3062 | panic("avc_add_callback() failed, error %d\n", err); |
3065 | 3063 | ||