aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/include/avc.h
diff options
context:
space:
mode:
authorWanlong Gao <gaowanlong@cn.fujitsu.com>2012-03-07 09:17:14 -0500
committerEric Paris <eparis@redhat.com>2012-04-09 12:23:44 -0400
commit562c99f20d989f222138dddfd71e275bfb3665de (patch)
tree47743a88f3aed8b77f79899f45409a597ab77263 /security/selinux/include/avc.h
parent0b36e44cc680b355f0d1b34002b2a10c9e1cae60 (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/include/avc.h')
-rw-r--r--security/selinux/include/avc.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/security/selinux/include/avc.h b/security/selinux/include/avc.h
index d97fadc4d963..92d0ab561db8 100644
--- a/security/selinux/include/avc.h
+++ b/security/selinux/include/avc.h
@@ -170,11 +170,7 @@ u32 avc_policy_seqno(void);
170#define AVC_CALLBACK_AUDITDENY_ENABLE 64 170#define AVC_CALLBACK_AUDITDENY_ENABLE 64
171#define AVC_CALLBACK_AUDITDENY_DISABLE 128 171#define AVC_CALLBACK_AUDITDENY_DISABLE 128
172 172
173int avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid, 173int avc_add_callback(int (*callback)(u32 event), u32 events);
174 u16 tclass, u32 perms,
175 u32 *out_retained),
176 u32 events, u32 ssid, u32 tsid,
177 u16 tclass, u32 perms);
178 174
179/* Exported to selinuxfs */ 175/* Exported to selinuxfs */
180int avc_get_hash_stats(char *page); 176int avc_get_hash_stats(char *page);