From: Paul Moore Date: Mon, 25 Sep 2006 22:52:01 +0000 (-0700) Subject: [NetLabel]: correct improper handling of non-NetLabel peer contexts X-Git-Tag: v2.6.19-rc1~1232^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14a72f53fb1bb5d5c2bdd8cf172219519664729a;p=pandora-kernel.git [NetLabel]: correct improper handling of non-NetLabel peer contexts Fix a problem where NetLabel would always set the value of sk_security_struct->peer_sid in selinux_netlbl_sock_graft() to the context of the socket, causing problems when users would query the context of the connection. This patch fixes this so that the value in sk_security_struct->peer_sid is only set when the connection is NetLabel based, otherwise the value is untouched. Signed-off-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed