Searched refs:sock_has_perm (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.4/security/selinux/ |
D | hooks.c | 4468 static int sock_has_perm(struct sock *sk, u32 perms) in sock_has_perm() function 4563 err = sock_has_perm(sk, SOCKET__BIND); in selinux_socket_bind() 4697 err = sock_has_perm(sk, SOCKET__CONNECT); in selinux_socket_connect_helper() 4796 return sock_has_perm(sock->sk, SOCKET__LISTEN); in selinux_socket_listen() 4807 err = sock_has_perm(sock->sk, SOCKET__ACCEPT); in selinux_socket_accept() 4828 return sock_has_perm(sock->sk, SOCKET__WRITE); in selinux_socket_sendmsg() 4834 return sock_has_perm(sock->sk, SOCKET__READ); in selinux_socket_recvmsg() 4839 return sock_has_perm(sock->sk, SOCKET__GETATTR); in selinux_socket_getsockname() 4844 return sock_has_perm(sock->sk, SOCKET__GETATTR); in selinux_socket_getpeername() 4851 err = sock_has_perm(sock->sk, SOCKET__SETOPT); in selinux_socket_setsockopt() [all …]
|