From: Stephen Smalley Date: Fri, 29 Jul 2005 04:16:21 +0000 (-0700) Subject: [PATCH] selinux: Fix address length checks in connect hook X-Git-Tag: v2.6.13-rc5~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911656f8a630e36b22c7e2bba3317dec9174209c;p=pandora-kernel.git [PATCH] selinux: Fix address length checks in connect hook This patch fixes the address length checks in the selinux_socket_connect hook to be no more restrictive than the underlying ipv4 and ipv6 code; otherwise, this hook can reject valid connect calls. This patch is in response to a bug report where an application was calling connect on an INET6 socket with an address that didn't include the optional scope id and failing due to these checks. Signed-off-by: Stephen Smalley Signed-off-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed