Home
last modified time | relevance | path

Searched defs:sk (Results 1 – 12 of 12) sorted by relevance

/security/selinux/
Dnetlabel.c67 static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk) in selinux_netlbl_sock_genattr()
100 const struct sock *sk, in selinux_netlbl_sock_getattr()
232 struct sock *sk; in selinux_netlbl_skbuff_setsid() local
353 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) in selinux_netlbl_inet_csk_clone()
371 void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk) in selinux_netlbl_sctp_sk_clone()
389 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family) in selinux_netlbl_socket_post_create()
506 struct sock *sk = sock->sk; in selinux_netlbl_socket_setsockopt() local
541 static int selinux_netlbl_socket_connect_helper(struct sock *sk, in selinux_netlbl_socket_connect_helper()
581 int selinux_netlbl_socket_connect_locked(struct sock *sk, in selinux_netlbl_socket_connect_locked()
603 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr) in selinux_netlbl_socket_connect()
Dhooks.c4582 static int sock_has_perm(struct sock *sk, u32 perms) in sock_has_perm()
4672 struct sock *sk = sock->sk; in selinux_socket_bind() local
4814 struct sock *sk = sock->sk; in selinux_socket_connect_helper() local
4906 struct sock *sk = sock->sk; in selinux_socket_connect() local
5067 static int selinux_sock_rcv_skb_compat(struct sock *sk, struct sk_buff *skb, in selinux_sock_rcv_skb_compat()
5101 static int selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) in selinux_socket_sock_rcv_skb()
5235 static int selinux_sk_alloc_security(struct sock *sk, int family, gfp_t priority) in selinux_sk_alloc_security()
5252 static void selinux_sk_free_security(struct sock *sk) in selinux_sk_free_security()
5261 static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk) in selinux_sk_clone_security()
5273 static void selinux_sk_getsecid(struct sock *sk, u32 *secid) in selinux_sk_getsecid()
[all …]
/security/selinux/include/
Dnetlabel.h111 static inline void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) in selinux_netlbl_inet_csk_clone()
115 static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk, in selinux_netlbl_sctp_sk_clone()
120 static inline int selinux_netlbl_socket_post_create(struct sock *sk, in selinux_netlbl_socket_post_create()
138 static inline int selinux_netlbl_socket_connect(struct sock *sk, in selinux_netlbl_socket_connect()
143 static inline int selinux_netlbl_socket_connect_locked(struct sock *sk, in selinux_netlbl_socket_connect_locked()
/security/apparmor/
Dnet.c146 struct sock *sk) in aa_label_sk_perm()
164 int aa_sk_perm(const char *op, u32 request, struct sock *sk) in aa_sk_perm()
214 struct common_audit_data *sa, struct sock *sk) in aa_secmark_perm()
247 u32 secid, struct sock *sk) in apparmor_secmark_check()
Dlsm.c772 static int apparmor_sk_alloc_security(struct sock *sk, int family, gfp_t flags) in apparmor_sk_alloc_security()
788 static void apparmor_sk_free_security(struct sock *sk) in apparmor_sk_free_security()
801 static void apparmor_sk_clone_security(const struct sock *sk, in apparmor_sk_clone_security()
1044 static int apparmor_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) in apparmor_socket_sock_rcv_skb()
1057 static struct aa_label *sk_peer_label(struct sock *sk) in sk_peer_label()
1138 static void apparmor_sock_graft(struct sock *sk, struct socket *parent) in apparmor_sock_graft()
1147 static int apparmor_inet_conn_request(struct sock *sk, struct sk_buff *skb, in apparmor_inet_conn_request()
1745 struct sock *sk; in apparmor_ip_postroute() local
/security/smack/
Dsmack_netfilter.c27 struct sock *sk = skb_to_full_sk(skb); in smack_ipv6_output() local
45 struct sock *sk = skb_to_full_sk(skb); in smack_ipv4_output() local
Dsmack_lsm.c2263 static int smack_sk_alloc_security(struct sock *sk, int family, gfp_t gfp_flags) in smack_sk_alloc_security()
2295 static void smack_sk_free_security(struct sock *sk) in smack_sk_free_security()
2423 static int smack_netlbl_add(struct sock *sk) in smack_netlbl_add()
2455 static void smack_netlbl_delete(struct sock *sk) in smack_netlbl_delete()
2484 static int smk_ipv4_check(struct sock *sk, struct sockaddr_in *sap) in smk_ipv4_check()
2560 struct sock *sk = sock->sk; in smk_ipv6_port_label() local
2647 static int smk_ipv6_port_check(struct sock *sk, struct sockaddr_in6 *address, in smk_ipv6_port_check()
3897 static struct smack_known *smack_from_netlbl(struct sock *sk, u16 family, in smack_from_netlbl()
3928 static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) in smack_socket_sock_rcv_skb()
4067 struct sock *sk = NULL; in smack_socket_getpeersec_dgram() local
[all …]
Dsmack.h475 struct sock *sk) in smk_ad_setfield_u_net_sk()
503 struct sock *sk) in smk_ad_setfield_u_net_sk()
/security/
Dsecurity.c2010 int security_netlink_send(struct sock *sk, struct sk_buff *skb) in security_netlink_send()
2193 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) in security_sock_rcv_skb()
2236 int security_sk_alloc(struct sock *sk, int family, gfp_t priority) in security_sk_alloc()
2241 void security_sk_free(struct sock *sk) in security_sk_free()
2246 void security_sk_clone(const struct sock *sk, struct sock *newsk) in security_sk_clone()
2252 void security_sk_classify_flow(struct sock *sk, struct flowi_common *flic) in security_sk_classify_flow()
2265 void security_sock_graft(struct sock *sk, struct socket *parent) in security_sock_graft()
2271 int security_inet_conn_request(struct sock *sk, in security_inet_conn_request()
2284 void security_inet_conn_established(struct sock *sk, in security_inet_conn_established()
2333 int security_tun_dev_attach(struct sock *sk, void *security) in security_tun_dev_attach()
[all …]
Dlsm_audit.c327 struct sock *sk = a->u.net->sk; in dump_common_audit_data() local
/security/apparmor/include/
Dnet.h99 struct sock *sk) in aa_profile_af_sk_perm()
/security/tomoyo/
Dnetwork.c626 static u8 tomoyo_sock_family(struct sock *sk) in tomoyo_sock_family()