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>
This commit is contained in:
committed by
David S. Miller
parent
c1a856c964
commit
6b877699c6
@ -54,6 +54,7 @@ struct request_sock {
|
||||
struct request_sock_ops *rsk_ops;
|
||||
struct sock *sk;
|
||||
u32 secid;
|
||||
u32 peer_secid;
|
||||
};
|
||||
|
||||
static inline struct request_sock *reqsk_alloc(struct request_sock_ops *ops)
|
||||
|
Reference in New Issue
Block a user