diff options
author | Patrick McHardy <kaber@trash.net> | 2005-08-14 19:29:52 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 16:00:54 -0700 |
commit | ac6d439d2097b72ea0cbc2322ce1263a38bc1fd0 (patch) | |
tree | 19e638a226993dddede5a2da577e2572f7555a95 /include/linux/selinux_netlink.h | |
parent | d629b836d151d43332492651dd841d32e57ebe3b (diff) | |
download | op-kernel-dev-ac6d439d2097b72ea0cbc2322ce1263a38bc1fd0.zip op-kernel-dev-ac6d439d2097b72ea0cbc2322ce1263a38bc1fd0.tar.gz |
[NETLINK]: Convert netlink users to use group numbers instead of bitmasks
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/selinux_netlink.h')
-rw-r--r-- | include/linux/selinux_netlink.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/selinux_netlink.h b/include/linux/selinux_netlink.h index 957e6eb..bbf489d 100644 --- a/include/linux/selinux_netlink.h +++ b/include/linux/selinux_netlink.h @@ -20,10 +20,21 @@ enum { SELNL_MSG_MAX }; -/* Multicast groups */ +#ifndef __KERNEL__ +/* Multicast groups - backwards compatiblility for userspace */ #define SELNL_GRP_NONE 0x00000000 #define SELNL_GRP_AVC 0x00000001 /* AVC notifications */ #define SELNL_GRP_ALL 0xffffffff +#endif + +enum selinux_nlgroups { + SELNLGRP_NONE, +#define SELNLGRP_NONE SELNLGRP_NONE + SELNLGRP_AVC, +#define SELNLGRP_AVC SELNLGRP_AVC + __SELNLGRP_MAX +}; +#define SELNLGRP_MAX (__SELNLGRP_MAX - 1) /* Message structures */ struct selnl_msg_setenforce { |