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 …]
4649 struct sk_security_struct *sksec = sk->sk_security; in sock_has_perm() local4653 if (sksec->sid == SECINITSID_KERNEL) in sock_has_perm()4661 current_sid(), sksec->sid, sksec->sclass, perms, in sock_has_perm()4690 struct sk_security_struct *sksec; in selinux_socket_post_create() local4706 sksec = sock->sk->sk_security; in selinux_socket_post_create()4707 sksec->sclass = sclass; in selinux_socket_post_create()4708 sksec->sid = sid; in selinux_socket_post_create()4710 if (sksec->sclass == SECCLASS_SCTP_SOCKET) in selinux_socket_post_create()4711 sksec->sctp_assoc_state = SCTP_ASSOC_UNSET; in selinux_socket_post_create()4738 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