Lines Matching refs:sksec
3779 struct sk_security_struct *sksec; in selinux_socket_post_create() local
3799 sksec = sock->sk->sk_security; in selinux_socket_post_create()
3800 sksec->sid = isec->sid; in selinux_socket_post_create()
3801 sksec->sclass = isec->sclass; in selinux_socket_post_create()
4130 struct sk_security_struct *sksec = sk->sk_security; in selinux_sock_rcv_skb_iptables_compat() local
4135 sk_sid = sksec->sid; in selinux_sock_rcv_skb_iptables_compat()
4136 sk_class = sksec->sclass; in selinux_sock_rcv_skb_iptables_compat()
4193 struct sk_security_struct *sksec = sk->sk_security; in selinux_sock_rcv_skb_compat() local
4195 u32 sk_sid = sksec->sid; in selinux_sock_rcv_skb_compat()
4224 err = selinux_netlbl_sock_rcv_skb(sksec, skb, family, &ad); in selinux_sock_rcv_skb_compat()
4227 err = selinux_xfrm_sock_rcv_skb(sksec->sid, skb, &ad); in selinux_sock_rcv_skb_compat()
4236 struct sk_security_struct *sksec = sk->sk_security; in selinux_socket_sock_rcv_skb() local
4238 u32 sk_sid = sksec->sid; in selinux_socket_sock_rcv_skb()
4395 struct sk_security_struct *sksec = sk->sk_security; in selinux_sk_getsecid() local
4397 *secid = sksec->sid; in selinux_sk_getsecid()
4404 struct sk_security_struct *sksec = sk->sk_security; in selinux_sock_graft() local
4408 isec->sid = sksec->sid; in selinux_sock_graft()
4409 sksec->sclass = isec->sclass; in selinux_sock_graft()
4415 struct sk_security_struct *sksec = sk->sk_security; in selinux_inet_conn_request() local
4429 req->secid = sksec->sid; in selinux_inet_conn_request()
4434 err = security_sid_mls_copy(sksec->sid, peersid, &newsid); in selinux_inet_conn_request()
4463 struct sk_security_struct *sksec = sk->sk_security; in selinux_inet_conn_established() local
4469 selinux_skb_peerlbl_sid(skb, family, &sksec->peer_sid); in selinux_inet_conn_established()
4604 struct sk_security_struct *sksec = skb->sk->sk_security; in selinux_ip_output() local
4605 sid = sksec->sid; in selinux_ip_output()
4629 struct sk_security_struct *sksec = sk->sk_security; in selinux_ip_postroute_iptables_compat() local
4634 sk_sid = sksec->sid; in selinux_ip_postroute_iptables_compat()
4635 sk_class = sksec->sclass; in selinux_ip_postroute_iptables_compat()
4693 struct sk_security_struct *sksec; in selinux_ip_postroute_compat() local
4700 sksec = sk->sk_security; in selinux_ip_postroute_compat()
4713 if (avc_has_perm(sksec->sid, skb->secmark, in selinux_ip_postroute_compat()
4719 if (selinux_xfrm_postroute_last(sksec->sid, skb, &ad, proto)) in selinux_ip_postroute_compat()
4785 struct sk_security_struct *sksec = sk->sk_security; in selinux_ip_postroute() local
4786 peer_sid = sksec->sid; in selinux_ip_postroute()