函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\selinuxfs.c Create Date:2022-07-27 20:37:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sel_make_avc_files

函数原型:static int sel_make_avc_files(struct dentry *dir)

返回类型:int

参数:

类型参数名称
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 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(files)循环
1584  dentry等于d_alloc_name(dir, name)
1585  如果非dentry则返回:负ENOMEM
1588  inode等于sel_make_inode( The root of the dentry tree , S_IFREG | mode)
1589  如果非inode
1590  dput(dentry)
1591  返回:负ENOMEM
1594  rmer ->i_op->default_file_ops 等于ops
1595  Stat data, not accessed from path walking 等于last_ino先自加
1596  添加目录项到哈希队列
1599  返回:0
调用者
名称描述
sel_fill_super