Searched refs:sock_has_perm (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/security/selinux/ |
D | hooks.c | 4547 static int sock_has_perm(struct sock *sk, u32 perms) in sock_has_perm() function 4638 err = sock_has_perm(sk, SOCKET__BIND); in selinux_socket_bind() 4770 err = sock_has_perm(sk, SOCKET__CONNECT); in selinux_socket_connect_helper() 4868 return sock_has_perm(sock->sk, SOCKET__LISTEN); in selinux_socket_listen() 4879 err = sock_has_perm(sock->sk, SOCKET__ACCEPT); in selinux_socket_accept() 4900 return sock_has_perm(sock->sk, SOCKET__WRITE); in selinux_socket_sendmsg() 4906 return sock_has_perm(sock->sk, SOCKET__READ); in selinux_socket_recvmsg() 4911 return sock_has_perm(sock->sk, SOCKET__GETATTR); in selinux_socket_getsockname() 4916 return sock_has_perm(sock->sk, SOCKET__GETATTR); in selinux_socket_getpeername() 4923 err = sock_has_perm(sock->sk, SOCKET__SETOPT); in selinux_socket_setsockopt() [all …]
|