Home
last modified time | relevance | path

Searched refs:sksec (Results 1 – 3 of 3) sorted by relevance

/linux/security/selinux/
H A Dnetlabel.c72 struct sk_security_struct *sksec = selinux_sock(sk); in selinux_netlbl_sock_genattr() local
75 if (sksec->nlbl_secattr != NULL) in selinux_netlbl_sock_genattr()
76 return sksec->nlbl_secattr; in selinux_netlbl_sock_genattr()
82 rc = security_netlbl_sid_to_secattr(sksec->sid, secattr); in selinux_netlbl_sock_genattr()
87 sksec->nlbl_secattr = secattr; in selinux_netlbl_sock_genattr()
105 struct sk_security_struct *sksec = selinux_sock(sk); in selinux_netlbl_sock_getattr() local
106 struct netlbl_lsm_secattr *secattr = sksec->nlbl_secattr; in selinux_netlbl_sock_getattr()
157 void selinux_netlbl_sk_security_free(struct sk_security_struct *sksec) in selinux_netlbl_sk_security_free() argument
159 if (!sksec->nlbl_secattr) in selinux_netlbl_sk_security_free()
162 netlbl_secattr_free(sksec->nlbl_secattr); in selinux_netlbl_sk_security_free()
[all …]
H A Dhooks.c4626 struct sk_security_struct *sksec = sk->sk_security; in sock_has_perm() local
4630 if (sock_skip_has_perm(sksec->sid)) in sock_has_perm()
4635 return avc_has_perm(current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()
4663 struct sk_security_struct *sksec; in selinux_socket_post_create() local
4679 sksec = selinux_sock(sock->sk); in selinux_socket_post_create()
4680 sksec->sclass = sclass; in selinux_socket_post_create()
4681 sksec->sid = sid; in selinux_socket_post_create()
4683 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_post_create()
4684 sksec->sctp_assoc_state = SCTP_ASSOC_UNSET; in selinux_socket_post_create()
4711 struct sk_security_struct *sksec = selinux_sock(sk); in selinux_socket_bind() local
[all …]
/linux/security/selinux/include/
H A Dnetlabel.h32 void selinux_netlbl_sk_security_free(struct sk_security_struct *sksec);
33 void selinux_netlbl_sk_security_reset(struct sk_security_struct *sksec);
44 int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec,
66 selinux_netlbl_sk_security_free(struct sk_security_struct *sksec) in selinux_netlbl_sk_security_free() argument
72 selinux_netlbl_sk_security_reset(struct sk_security_struct *sksec) in selinux_netlbl_sk_security_reset() argument
114 static inline int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, in selinux_netlbl_sock_rcv_skb() argument