Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_make_avc_files

Proto:static int sel_make_avc_files(struct dentry *dir)

Type:int

Parameter:

TypeParameterName
struct dentry *dir
1568  sb = The root of the dentry tree
1569  fsi = Filesystem private info
1571  static const struct tree_descr files[] = {{"cache_threshold", & sel_avc_cache_threshold_ops, S_IRUGO | S_IWUSR}, {"hash_stats", & sel_avc_hash_stats_ops, S_IRUGO}, }
1580  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(files) cycle
1584  dentry = d_alloc_name(dir, name)
1585  If Not dentry Then Return -ENOMEM
1588  inode = sel_make_inode( The root of the dentry tree , S_IFREG | mode)
1589  If Not inode Then
1590  dput(dentry)
1591  Return -ENOMEM
1594  rmer ->i_op->default_file_ops = ops
1595  Stat data, not accessed from path walking = ++last_ino
1596  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().
1599  Return 0
Caller
NameDescribe
sel_fill_super