Searched refs:sock_has_perm (Results 1 – 1 of 1) sorted by relevance
/linux-6.1.9/security/selinux/ |
D | hooks.c | 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() [all …]
|