函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_make_class_dir_entries

函数原型:static int sel_make_class_dir_entries(char *classname, int index, struct dentry *dir)

返回类型:int

参数:

类型参数名称
char *classname
intindex
struct dentry *dir
1761  sb等于 The root of the dentry tree
1762  fsi等于 Filesystem private info
1763  struct dentry * dentry = NULL
1764  struct inode * inode = NULL
1767  dentry等于d_alloc_name(dir, "index")
1768  如果非dentry则返回:负ENOMEM
1771  inode等于sel_make_inode( The root of the dentry tree , S_IFREG | S_IRUGO)
1772  如果非inode
1773  dput(dentry)
1774  返回:负ENOMEM
1777  rmer ->i_op->default_file_ops 等于sel_class_ops
1778  Stat data, not accessed from path walking 等于sel_class_to_ino(index)
1779  添加目录项到哈希队列
1781  dentry等于declaration for sel_make_class_dirs
1782  如果是错误则返回:错误
1785  rc等于sel_make_perm_files(classname, index, dentry)
1787  返回:rc
调用者
名称描述
sel_make_classes