]> err.no Git - linux-2.6/commit
SELinux: Return correct context for SO_PEERSEC
authorVenkat Yekkirala <vyekkirala@trustedcs.com>
Wed, 8 Nov 2006 23:04:09 +0000 (17:04 -0600)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:33 +0000 (21:21 -0800)
commit6b877699c6f1efede4545bcecc367786a472eedb
treec0a60dc90578fa9f16d4496e2700bc285eab47c0
parentc1a856c9640c9ff3d70bbd8214b6a0974609eef8
SELinux: Return correct context for SO_PEERSEC

Fix SO_PEERSEC for tcp sockets to return the security context of
the peer (as represented by the SA from the peer) as opposed to the
SA used by the local/source socket.

Signed-off-by: Venkat Yekkirala <vyekkirala@TrustedCS.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/security.h
include/net/request_sock.h
net/ipv4/tcp_input.c
security/dummy.c
security/selinux/hooks.c
security/selinux/include/xfrm.h
security/selinux/xfrm.c