函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_socket_accept

函数原型:static int selinux_socket_accept(struct socket *sock, struct socket *newsock)

返回类型:int

参数:

类型参数名称
struct socket *sock
struct socket *newsock
4827  err等于sock_has_perm(sk, SOCKET__ACCEPT)
4828  如果err则返回:err
4831  isec等于inode_security_novalidate(SOCK_INODE(sock))
4832  加自旋锁
4833  sclass等于 security class of this object
4834  sid等于 SID of this object
4835  自旋锁解锁
4837  newisec等于inode_security_novalidate(SOCK_INODE(newsock))
4838  security class of this object 等于sclass
4839  SID of this object 等于sid
4840  initialization flag 等于 initialized
4842  返回:0