diff options
author | Steve Grubb <sgrubb@redhat.com> | 2005-11-03 10:48:08 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-03-20 14:08:53 -0500 |
commit | 90d526c074ae5db484388da56c399acf892b6c17 (patch) | |
tree | edeb7c47d9144f3995846c5fc25db8e49ef12f5d /security/selinux/nlmsgtab.c | |
parent | b63862f46547487388e582e8ac9083830d34f058 (diff) |
[PATCH] Define new range of userspace messages.
The attached patch updates various items for the new user space
messages. Please apply.
Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'security/selinux/nlmsgtab.c')
-rw-r--r-- | security/selinux/nlmsgtab.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/security/selinux/nlmsgtab.c b/security/selinux/nlmsgtab.c index 69b9329b2054..d7c0e912c5f3 100644 --- a/security/selinux/nlmsgtab.c +++ b/security/selinux/nlmsgtab.c | |||
@@ -145,8 +145,10 @@ int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) | |||
145 | break; | 145 | break; |
146 | 146 | ||
147 | case SECCLASS_NETLINK_AUDIT_SOCKET: | 147 | case SECCLASS_NETLINK_AUDIT_SOCKET: |
148 | if (nlmsg_type >= AUDIT_FIRST_USER_MSG && | 148 | if ((nlmsg_type >= AUDIT_FIRST_USER_MSG && |
149 | nlmsg_type <= AUDIT_LAST_USER_MSG) { | 149 | nlmsg_type <= AUDIT_LAST_USER_MSG) || |
150 | (nlmsg_type >= AUDIT_FIRST_USER_MSG2 && | ||
151 | nlmsg_type <= AUDIT_LAST_USER_MSG2)) { | ||
150 | *perm = NETLINK_AUDIT_SOCKET__NLMSG_RELAY; | 152 | *perm = NETLINK_AUDIT_SOCKET__NLMSG_RELAY; |
151 | } else { | 153 | } else { |
152 | err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, | 154 | err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, |