Lines Matching refs:sock
35 #include <net/sock.h>
81 static struct netlbl_lsm_secattr *selinux_netlbl_sock_genattr(struct sock *sk)
218 struct sock *sk;
252 * will get preserved when a full sock is created once the connection handshake
275 * selinux_netlbl_inet_csk_clone - Initialize the newly created sock
276 * @sk: the new sock
281 * we need to set the NetLabel state here since we now have a sock structure.
284 void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family)
296 * @sock: the socket to label
304 int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
332 * @sksec: the sock's sk_security_struct
388 * @sock: the socket
399 int selinux_netlbl_socket_setsockopt(struct socket *sock,
404 struct sock *sk = sock->sk;
435 int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr)