函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_socket_post_create

函数原型:static int selinux_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern)

返回类型:int

参数:

类型参数名称
struct socket *sock
intfamily
inttype
intprotocol
intkern
4529  tsec等于selinux_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.())
4530  isec等于inode_security_novalidate(SOCK_INODE(sock))
4532  sclass等于socket_type_to_security_class(family, type, protocol)
4533  sid等于SECINITSID_KERNEL
4534  err等于0
4536  如果非kern
4537  err等于socket security operations
4538  如果err则返回:err
4542  security class of this object 等于sclass
4543  SID of this object 等于sid
4544  initialization flag 等于 initialized
4546  如果sk
4547  sksec等于sk_security
4548  sock security class 等于sclass
4549  SID of this object 等于sid
4551  如果 sock security class 恒等于SECCLASS_SCTP_SOCKETsctp_assoc_state等于SCTP_ASSOC_UNSET
4554  err等于selinux_netlbl_socket_post_create(sk, family)
4557  返回:err