aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 1dc935f7b919..33028b3b19ce 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3591,6 +3591,11 @@ int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb,
3591 err = selinux_xfrm_decode_session(skb, &peersid, 0); 3591 err = selinux_xfrm_decode_session(skb, &peersid, 0);
3592 BUG_ON(err); 3592 BUG_ON(err);
3593 3593
3594 if (peersid == SECSID_NULL) {
3595 req->secid = sksec->sid;
3596 return 0;
3597 }
3598
3594 err = security_sid_mls_copy(sksec->sid, peersid, &newsid); 3599 err = security_sid_mls_copy(sksec->sid, peersid, &newsid);
3595 if (err) 3600 if (err)
3596 return err; 3601 return err;