Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_sock_graft

Proto:static void selinux_sock_graft(struct sock *sk, struct socket *parent)

Type:void

Parameter:

TypeParameterName
struct sock *sk
struct socket *parent
5186  isec = inode_security_novalidate(SOCK_INODE(parent))
5188  sksec = sk_security
5190  If sk_family == PF_INET || sk_family == PF_INET6 || sk_family == PF_UNIX Then SID of this object = SID of this object
5193  sock security class = security class of this object