Searched refs:sksec (Results 1 – 3 of 3) sorted by relevance
70 struct sk_security_struct *sksec = sk->sk_security; in selinux_netlbl_sock_genattr() local73 if (sksec->nlbl_secattr != NULL) in selinux_netlbl_sock_genattr()74 return sksec->nlbl_secattr; in selinux_netlbl_sock_genattr()79 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr()85 sksec->nlbl_secattr = secattr; in selinux_netlbl_sock_genattr()103 struct sk_security_struct *sksec = sk->sk_security; in selinux_netlbl_sock_getattr() local104 struct netlbl_lsm_secattr *secattr = sksec->nlbl_secattr; in selinux_netlbl_sock_getattr()154 void selinux_netlbl_sk_security_free(struct sk_security_struct *sksec) in selinux_netlbl_sk_security_free() argument156 if (sksec->nlbl_secattr != NULL) in selinux_netlbl_sk_security_free()157 netlbl_secattr_free(sksec->nlbl_secattr); in selinux_netlbl_sk_security_free()[all …]
4470 struct sk_security_struct *sksec = sk->sk_security; in sock_has_perm() local4474 if (sksec->sid == SECINITSID_KERNEL) in sock_has_perm()4482 current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()4511 struct sk_security_struct *sksec; in selinux_socket_post_create() local4527 sksec = sock->sk->sk_security; in selinux_socket_post_create()4528 sksec->sclass = sclass; in selinux_socket_post_create()4529 sksec->sid = sid; in selinux_socket_post_create()4531 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_post_create()4532 sksec->sctp_assoc_state = SCTP_ASSOC_UNSET; in selinux_socket_post_create()4559 struct sk_security_struct *sksec = sk->sk_security; in selinux_socket_bind() local[all …]
32 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() argument80 struct sk_security_struct *sksec) in selinux_netlbl_sk_security_reset() argument131 static inline int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, in selinux_netlbl_sock_rcv_skb() argument