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(&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() local105 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() argument158 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 …]
4541 struct sk_security_struct *sksec = sk->sk_security; in sock_has_perm() local4545 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() local4598 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 …]
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