Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_socket_accept

Proto:static int selinux_socket_accept(struct socket *sock, struct socket *newsock)

Type:int

Parameter:

TypeParameterName
struct socket *sock
struct socket *newsock
4827  err = sock_has_perm(sk, SOCKET__ACCEPT)
4828  If err Then Return err
4831  isec = inode_security_novalidate(SOCK_INODE(sock))
4832  spin_lock( & lock)
4833  sclass = security class of this object
4834  sid = SID of this object
4835  spin_unlock( & lock)
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  Return 0