tree 6a715440068d1df09fee5bc2e7e9ac0d8af37cae
parent 1db7fc75a410d9a15cbc58a9b073a688669c6d42
author James Morris <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:24:03 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:24:03 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: Stephen Smalley <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
selinux/nlmsgtab.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: security/selinux/nlmsgtab.c
===================================================================
--- cddd6fefd8e9895db1dfc933a5a174ec374694ec/security/selinux/nlmsgtab.c
(mode:100644 sha1:fa7fa030e6ebaa5609bb5ce1baff3181350da0b3)
+++ 6a715440068d1df09fee5bc2e7e9ac0d8af37cae/security/selinux/nlmsgtab.c
(mode:100644 sha1:f79408252730567a3e82e9b4a4eca445ac46a7c1)
@@ -126,7 +126,7 @@
break;
case SECCLASS_NETLINK_FIREWALL_SOCKET:
- case NETLINK_IP6_FW:
+ case SECCLASS_NETLINK_IP6FW_SOCKET:
err = nlmsg_perm(nlmsg_type, perm, nlmsg_firewall_perms,
sizeof(nlmsg_firewall_perms));
break;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html