Lines Matching refs:sock
20 #include <net/sock.h>
67 static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk)
100 const struct sock *sk,
232 struct sock *sk;
320 * will get preserved when a full sock is created once the connection handshake
344 * selinux_netlbl_inet_csk_clone - Initialize the newly created sock
345 * @sk: the new sock
350 * we need to set the NetLabel state here since we now have a sock structure.
353 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family)
364 * selinux_netlbl_sctp_sk_clone - Copy state to the newly created sock
365 * @sk: current sock
366 * @newsk: the new sock
371 void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk)
381 * @sock: the socket to label
389 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
417 * @sksec: the sock's sk_security_struct
490 * @sock: the socket
501 int selinux_netlbl_socket_setsockopt(struct socket *sock,
506 struct sock *sk = sock->sk;
541 static int selinux_netlbl_socket_connect_helper(struct sock *sk,
581 int selinux_netlbl_socket_connect_locked(struct sock *sk,
603 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr)