diff options
author | 2006-09-25 15:52:01 -0700 | |
---|---|---|
committer | 2006-09-25 15:52:01 -0700 | |
commit | 14a72f53fb1bb5d5c2bdd8cf172219519664729a (patch) | |
tree | 95a077fb9289a95c352af77f18f12e5aba3313c6 /net/netlabel/netlabel_user.h | |
parent | [TCP]: make cubic the default (diff) | |
download | linux-dev-14a72f53fb1bb5d5c2bdd8cf172219519664729a.tar.xz linux-dev-14a72f53fb1bb5d5c2bdd8cf172219519664729a.zip |
[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 <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlabel/netlabel_user.h')
0 files changed, 0 insertions, 0 deletions