tree 3b488bdede373c9095dcdf6e4d4f0c8fc3c01465
parent 02ef36c5757465caabf23fb8e50f9fd10da281a8
author James Morris <[EMAIL PROTECTED]> Tue Apr 12 08:24:39 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:24:39 2005

[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]>

 nlmsgtab.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: security/selinux/nlmsgtab.c
===================================================================
--- ccf1d7cc2478bbb4bbac0bf39a4a50ff5926f8d3/security/selinux/nlmsgtab.c  
(mode:100644 sha1:191bd4811467c3dffd3a9a53c6876314b7ace7fb)
+++ 3b488bdede373c9095dcdf6e4d4f0c8fc3c01465/security/selinux/nlmsgtab.c  
(mode:100644 sha1:a8ad4c29497ec9d9206a9dc97c184ed785eeb34f)
@@ -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

Reply via email to