Lines Matching defs:sock
20 #include <net/sock.h>
68 static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk)
100 const struct sock *sk,
237 struct sock *sk;
324 * will get preserved when a full sock is created once the connection handshake
347 * selinux_netlbl_inet_csk_clone - Initialize the newly created sock
348 * @sk: the new sock
349 * @family: the sock's address family
354 * we need to set the NetLabel state here since we now have a sock structure.
357 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family)
368 * selinux_netlbl_sctp_sk_clone - Copy state to the newly created sock
369 * @sk: current sock
370 * @newsk: the new sock
375 void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk)
385 * @sk: the sock to label
393 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
421 * @sksec: the sock's sk_security_struct
493 * @sock: the socket
504 int selinux_netlbl_socket_setsockopt(struct socket *sock,
509 struct sock *sk = sock->sk;
544 static int selinux_netlbl_socket_connect_helper(struct sock *sk,
584 int selinux_netlbl_socket_connect_locked(struct sock *sk,
606 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr)