Messages in this thread Patch in this message | | | Subject | [patch 013/198] SELinux: fix bug in Netlink message type detection | From | akpm@osdl ... | Date | Tue, 12 Apr 2005 03:30:44 -0700 |
| |
From: James Morris <jmorris@redhat.com>
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> ---
25-akpm/security/selinux/nlmsgtab.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN security/selinux/nlmsgtab.c~selinux-fix-bug-in-netlink-message-type-detection security/selinux/nlmsgtab.c --- 25/security/selinux/nlmsgtab.c~selinux-fix-bug-in-netlink-message-type-detection 2005-04-12 03:21:06.586135656 -0700 +++ 25-akpm/security/selinux/nlmsgtab.c 2005-04-12 03:21:06.589135200 -0700 @@ -126,7 +126,7 @@ int selinux_nlmsg_lookup(u16 sclass, u16 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |