函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_make_perm_files

函数原型:static int sel_make_perm_files(char *objclass, int classvalue, struct dentry *dir)

返回类型:int

参数:

类型参数名称
char *objclass
intclassvalue
struct dentry *dir
1721  fsi等于s_fs_info
1725  rc等于security_get_permissions(state, objclass, & perms, & nperms)
1726  如果rc则返回:rc
1729 i小于nperms循环
1733  rc等于负ENOMEM
1734  dentry等于d_alloc_name(dir, perms[i])
1735  如果非dentry则转到:out
1738  rc等于负ENOMEM
1739  inode等于sel_make_inode( The root of the dentry tree , S_IFREG | S_IRUGO)
1740  如果非inode
1741  dput(dentry)
1742  转到:out
1745  rmer ->i_op->default_file_ops 等于sel_perm_ops
1747  Stat data, not accessed from path walking 等于sel_perm_to_ino(classvalue, i + 1)
1748  添加目录项到哈希队列
1750  rc等于0
1751  out :
1752 i小于nperms循环释放内存
1754  释放内存
1755  返回:rc
调用者
名称描述
sel_make_class_dir_entries