Searched refs:sksec (Results 1 – 3 of 3) sorted by relevance
71 struct sk_security_struct *sksec = sk->sk_security; in selinux_netlbl_sock_genattr() local74 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(sksec->sid, secattr); 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()155 void selinux_netlbl_sk_security_free(struct sk_security_struct *sksec) in selinux_netlbl_sk_security_free() argument157 if (!sksec->nlbl_secattr) in selinux_netlbl_sk_security_free()160 netlbl_secattr_free(sksec->nlbl_secattr); in selinux_netlbl_sk_security_free()[all …]
4549 struct sk_security_struct *sksec = sk->sk_security; in sock_has_perm() local4553 if (sksec->sid == SECINITSID_KERNEL) in sock_has_perm()4558 return avc_has_perm(current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()4586 struct sk_security_struct *sksec; in selinux_socket_post_create() local4602 sksec = sock->sk->sk_security; in selinux_socket_post_create()4603 sksec->sclass = sclass; in selinux_socket_post_create()4604 sksec->sid = sid; in selinux_socket_post_create()4606 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_post_create()4607 sksec->sctp_assoc_state = SCTP_ASSOC_UNSET; in selinux_socket_post_create()4634 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() argument125 static inline int selinux_netlbl_sock_rcv_skb(struct sk_security_struct *sksec, in selinux_netlbl_sock_rcv_skb() argument