Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:59:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sock_has_perm

Proto:static int sock_has_perm(struct sock *sk, unsigned int perms)

Type:int

Parameter:

TypeParameterName
struct sock *sk
unsigned intperms
4490  sksec = sk_security
4492  struct lsm_network_audit net = {0, }
4494  If SID of this object == SECINITSID_KERNEL Then Return 0
4497  type = LSM_AUDIT_DATA_NET
4498  net = net
4499  sk = sk
4501  Return avc_has_perm - Check permissions and perform any appropriate auditing
Caller
NameDescribe
selinux_socket_bindRange of port numbers used to automatically bind.Need to determine whether we should perform a name_bindpermission check between the socket and the port number.
selinux_socket_connect_helperThis supports connect(2) and SCTP connect services such as sctp_connectx(3)* and sctp_sendmsg(3) as described in Documentation/security/SCTP.rst
selinux_socket_listen
selinux_socket_accept
selinux_socket_sendmsg
selinux_socket_recvmsg
selinux_socket_getsockname
selinux_socket_getpeername
selinux_socket_setsockopt
selinux_socket_getsockopt
selinux_socket_shutdown
selinux_nlmsg_perm