Lines Matching refs:sock_has_perm
4539 static int sock_has_perm(struct sock *sk, u32 perms) in sock_has_perm() function
4634 err = sock_has_perm(sk, SOCKET__BIND); in selinux_socket_bind()
4768 err = sock_has_perm(sk, SOCKET__CONNECT); in selinux_socket_connect_helper()
4867 return sock_has_perm(sock->sk, SOCKET__LISTEN); in selinux_socket_listen()
4878 err = sock_has_perm(sock->sk, SOCKET__ACCEPT); in selinux_socket_accept()
4899 return sock_has_perm(sock->sk, SOCKET__WRITE); in selinux_socket_sendmsg()
4905 return sock_has_perm(sock->sk, SOCKET__READ); in selinux_socket_recvmsg()
4910 return sock_has_perm(sock->sk, SOCKET__GETATTR); in selinux_socket_getsockname()
4915 return sock_has_perm(sock->sk, SOCKET__GETATTR); in selinux_socket_getpeername()
4922 err = sock_has_perm(sock->sk, SOCKET__SETOPT); in selinux_socket_setsockopt()
4932 return sock_has_perm(sock->sk, SOCKET__GETOPT); in selinux_socket_getsockopt()
4937 return sock_has_perm(sock->sk, SOCKET__SHUTDOWN); in selinux_socket_shutdown()
5927 rc = sock_has_perm(sk, perm); in selinux_netlink_send()