Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

security/selinux/hooks.c __selinux_socket_bind() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 0 sk 4096-ptr_max
PARAM_VALUE 1 perms 2048
DATA_SOURCE 0 sk $0
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_netlink_send() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 0 sk 4096-ptr_max
DATA_SOURCE 0 sk $0

security/selinux/hooks.c selinux_socket_accept() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 16384
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_connect_helper() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 0 sk 4096-ptr_max
PARAM_VALUE 1 perms 4096
DATA_SOURCE 0 sk $0
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_getpeername() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 16
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_getsockname() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 16
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_getsockopt() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 32768
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_listen() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 8192
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_recvmsg() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 2
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_sendmsg() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 4
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_setsockopt() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 65536
UNITS 0 sk unit_byte

security/selinux/hooks.c selinux_socket_shutdown() -> sock_has_perm()

Type Parameter Key Value
PARAM_VALUE 1 perms 131072
UNITS 0 sk unit_byte