Lines Matching refs:peer_sid

4546 	sksec_a->peer_sid = sksec_b->sid;  in selinux_socket_socketpair()
4547 sksec_b->peer_sid = sksec_a->sid; in selinux_socket_socketpair()
4892 sksec_new->peer_sid = sksec_sock->sid; in selinux_socket_unix_stream_connect()
4899 sksec_sock->peer_sid = sksec_new->sid; in selinux_socket_unix_stream_connect()
4922 char *addrp, u16 family, u32 peer_sid, in selinux_inet_sys_rcv_skb() argument
4933 peer_sid, if_sid, in selinux_inet_sys_rcv_skb()
4942 peer_sid, node_sid, in selinux_inet_sys_rcv_skb()
5020 u32 peer_sid; in selinux_socket_sock_rcv_skb() local
5022 err = selinux_skb_peerlbl_sid(skb, family, &peer_sid); in selinux_socket_sock_rcv_skb()
5026 addrp, family, peer_sid, &ad); in selinux_socket_sock_rcv_skb()
5032 sk_sid, peer_sid, SECCLASS_PEER, in selinux_socket_sock_rcv_skb()
5058 u32 peer_sid = SECSID_NULL; in selinux_socket_getpeersec_stream() local
5063 peer_sid = sksec->peer_sid; in selinux_socket_getpeersec_stream()
5064 if (peer_sid == SECSID_NULL) in selinux_socket_getpeersec_stream()
5067 err = security_sid_to_context(&selinux_state, peer_sid, &scontext, in selinux_socket_getpeersec_stream()
5123 sksec->peer_sid = SECINITSID_UNLABELED; in selinux_sk_alloc_security()
5147 newsksec->peer_sid = sksec->peer_sid; in selinux_sk_clone_security()
5187 u32 peer_sid = SECINITSID_UNLABELED; in selinux_sctp_assoc_request() local
5201 &peer_sid); in selinux_sctp_assoc_request()
5205 if (peer_sid == SECSID_NULL) in selinux_sctp_assoc_request()
5206 peer_sid = SECINITSID_UNLABELED; in selinux_sctp_assoc_request()
5217 sksec->peer_sid = peer_sid; in selinux_sctp_assoc_request()
5218 } else if (sksec->peer_sid != peer_sid) { in selinux_sctp_assoc_request()
5226 sksec->peer_sid, peer_sid, sksec->sclass, in selinux_sctp_assoc_request()
5238 err = selinux_conn_sid(sksec->sid, peer_sid, &conn_sid); in selinux_sctp_assoc_request()
5243 ep->peer_secid = peer_sid; in selinux_sctp_assoc_request()
5344 newsksec->peer_sid = ep->peer_secid; in selinux_sctp_sk_clone()
5376 newsksec->peer_sid = req->peer_secid; in selinux_inet_csk_clone()
5396 selinux_skb_peerlbl_sid(skb, family, &sksec->peer_sid); in selinux_inet_conn_established()
5556 u32 peer_sid; in selinux_ip_forward() local
5572 if (selinux_skb_peerlbl_sid(skb, family, &peer_sid) != 0) in selinux_ip_forward()
5584 addrp, family, peer_sid, &ad); in selinux_ip_forward()
5593 peer_sid, skb->secmark, in selinux_ip_forward()
5602 if (selinux_netlbl_skbuff_setsid(skb, family, peer_sid) != 0) in selinux_ip_forward()
5721 u32 peer_sid; in selinux_ip_postroute() local
5768 if (selinux_skb_peerlbl_sid(skb, family, &peer_sid)) in selinux_ip_postroute()
5772 peer_sid = SECINITSID_KERNEL; in selinux_ip_postroute()
5810 if (selinux_conn_sid(sksec->sid, skb_sid, &peer_sid)) in selinux_ip_postroute()
5817 peer_sid = sksec->sid; in selinux_ip_postroute()
5830 peer_sid, skb->secmark, in selinux_ip_postroute()
5841 peer_sid, if_sid, in selinux_ip_postroute()
5848 peer_sid, node_sid, in selinux_ip_postroute()