函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:31:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sock_has_perm

函数原型:static int sock_has_perm(struct sock *sk, unsigned int perms)

返回类型:int

参数:

类型参数名称
struct sock *sk
unsigned intperms
4490  sksec等于sk_security
4492  struct lsm_network_audit net = {0, }
4494  如果 SID of this object 恒等于SECINITSID_KERNEL则返回:0
4497  type等于LSM_AUDIT_DATA_NET
4498  net等于net
4499  sk等于sk
4501  返回:avc_has_perm - Check permissions and perform any appropriate auditing
调用者
名称描述
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