Home
last modified time | relevance | path

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

/linux-6.1.9/security/selinux/
Dnetlabel.c71 struct sk_security_struct *sksec = sk->sk_security; in selinux_netlbl_sock_genattr() local
74 if (sksec->nlbl_secattr != NULL) in selinux_netlbl_sock_genattr()
75 return sksec->nlbl_secattr; in selinux_netlbl_sock_genattr()
80 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr()
86 sksec->nlbl_secattr = secattr; in selinux_netlbl_sock_genattr()
104 struct sk_security_struct *sksec = sk->sk_security; in selinux_netlbl_sock_getattr() local
105 struct netlbl_lsm_secattr *secattr = sksec->nlbl_secattr; in selinux_netlbl_sock_getattr()
156 void selinux_netlbl_sk_security_free(struct sk_security_struct *sksec) in selinux_netlbl_sk_security_free() argument
158 if (sksec->nlbl_secattr != NULL) in selinux_netlbl_sk_security_free()
159 netlbl_secattr_free(sksec->nlbl_secattr); in selinux_netlbl_sk_security_free()
[all …]
Dhooks.c4541 struct sk_security_struct *sksec = sk->sk_security; in sock_has_perm() local
4545 if (sksec->sid == SECINITSID_KERNEL) in sock_has_perm()
4553 current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()
4582 struct sk_security_struct *sksec; in selinux_socket_post_create() local
4598 sksec = sock->sk->sk_security; in selinux_socket_post_create()
4599 sksec->sclass = sclass; in selinux_socket_post_create()
4600 sksec->sid = sid; in selinux_socket_post_create()
4602 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_post_create()
4603 sksec->sctp_assoc_state = SCTP_ASSOC_UNSET; in selinux_socket_post_create()
4630 struct sk_security_struct *sksec = sk->sk_security; in selinux_socket_bind() local
[all …]
/linux-6.1.9/security/selinux/include/
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);
48 int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec,
74 struct sk_security_struct *sksec) in selinux_netlbl_sk_security_free() argument
80 struct sk_security_struct *sksec) in selinux_netlbl_sk_security_reset() argument
125 static inline int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, in selinux_netlbl_sock_rcv_skb() argument