Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:declaration for sel_make_class_dirs

Proto:static struct dentry *sel_make_dir(struct dentry *dir, const char *name, unsigned long *ino)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dir
const char *name
unsigned long *ino
1865  dentry = d_alloc_name(dir, name)
1868  If Not dentry Then Return ERR_PTR( - ENOMEM)
1871  inode = sel_make_inode( The root of the dentry tree , S_IFDIR | S_IRUGO | S_IXUGO)
1872  If Not inode Then
1873  dput(dentry)
1874  Return ERR_PTR( - ENOMEM)
1877  i_op = simple_dir_inode_operations
1878  rmer ->i_op->default_file_ops = simple_dir_operations
1879  Stat data, not accessed from path walking = ++ino
1881  inc_nlink(inode)
1882  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().
1884  inc_nlink(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
1886  Return dentry
Caller
NameDescribe
sel_make_class_dir_entries
sel_make_classes
sel_fill_super