Lines Matching refs:sock
622 * @sk: Pointer to "struct sock".
626 static u8 tomoyo_sock_family(struct sock *sk)
646 * @sock: Pointer to "struct socket".
650 int tomoyo_socket_listen_permission(struct socket *sock)
653 const u8 family = tomoyo_sock_family(sock->sk);
654 const unsigned int type = sock->type;
661 const int error = sock->ops->getname(sock, (struct sockaddr *)
680 * @sock: Pointer to "struct socket".
686 int tomoyo_socket_connect_permission(struct socket *sock,
690 const u8 family = tomoyo_sock_family(sock->sk);
691 const unsigned int type = sock->type;
710 return tomoyo_check_inet_address(addr, addr_len, sock->sk->sk_protocol,
717 * @sock: Pointer to "struct socket".
723 int tomoyo_socket_bind_permission(struct socket *sock, struct sockaddr *addr,
727 const u8 family = tomoyo_sock_family(sock->sk);
728 const unsigned int type = sock->type;
745 return tomoyo_check_inet_address(addr, addr_len, sock->sk->sk_protocol,
752 * @sock: Pointer to "struct socket".
758 int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg,
762 const u8 family = tomoyo_sock_family(sock->sk);
763 const unsigned int type = sock->type;
776 sock->sk->sk_protocol, &address);