diff options
author | James Morris <jmorris@redhat.com> | 2005-04-16 18:24:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:24:03 -0400 |
commit | 388c69789a2a2e50965e805e3e641418082b352c (patch) | |
tree | 6a715440068d1df09fee5bc2e7e9ac0d8af37cae /security | |
parent | 1db7fc75a410d9a15cbc58a9b073a688669c6d42 (diff) |
[PATCH] SELinux: fix bug in Netlink message type detection
This patch fixes a bug in the SELinux Netlink message type detection code,
where the wrong constant was being used in a case statement. The incorrect
value is not valid for this class of object so it would not have been
reached, and fallen through to a default handler for all Netlink messages.
Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/nlmsgtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/nlmsgtab.c b/security/selinux/nlmsgtab.c index fa7fa030e6eb..f79408252730 100644 --- a/security/selinux/nlmsgtab.c +++ b/security/selinux/nlmsgtab.c | |||
@@ -126,7 +126,7 @@ int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) | |||
126 | break; | 126 | break; |
127 | 127 | ||
128 | case SECCLASS_NETLINK_FIREWALL_SOCKET: | 128 | case SECCLASS_NETLINK_FIREWALL_SOCKET: |
129 | case NETLINK_IP6_FW: | 129 | case SECCLASS_NETLINK_IP6FW_SOCKET: |
130 | err = nlmsg_perm(nlmsg_type, perm, nlmsg_firewall_perms, | 130 | err = nlmsg_perm(nlmsg_type, perm, nlmsg_firewall_perms, |
131 | sizeof(nlmsg_firewall_perms)); | 131 | sizeof(nlmsg_firewall_perms)); |
132 | break; | 132 | break; |