Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_make_initcon_files

Proto:static int sel_make_initcon_files(struct dentry *dir)

Type:int

Parameter:

TypeParameterName
struct dentry *dir
1629  When i <= SECINITSID_NUM cycle
1632  dentry = d_alloc_name(dir, security_get_initial_sid_context(i))
1633  If Not dentry Then Return -ENOMEM
1636  inode = sel_make_inode( The root of the dentry tree , S_IFREG | S_IRUGO)
1637  If Not inode Then
1638  dput(dentry)
1639  Return -ENOMEM
1642  rmer ->i_op->default_file_ops = sel_initcon_ops
1643  Stat data, not accessed from path walking = i | SEL_INITCON_INO_OFFSET
1644  d_add - add dentry to hash queues*@entry: dentry to add*@inode: The inode to attach to this dentry* This adds the entry to the hash queues and initializes @inode.* The entry was actually filled in earlier during d_alloc().
1647  Return 0
Caller
NameDescribe
sel_fill_super