函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:securityfs_remove - removes a file or directory from the securityfs filesystem*@dentry: a pointer to a the dentry of the file or directory to be removed

函数原型:void securityfs_remove(struct dentry *dentry)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
299  如果非dentry是错误则返回
302  dir等于获得目录项的索引节点
303  inode_lock(dir)
304  如果simple_positive(dentry)则
305  如果d_is_dir(dentry)则simple_rmdir(dir, dentry)
307  否则simple_unlink(dir, dentry)
309  dput(dentry)
311  inode_unlock(dir)
312  simple_release_fs( & mount, & mount_count)
调用者
名称描述
entry_remove_filery_remove_file - drop a single file entry in the apparmor securityfs*@fs_file: aa_sfs_entry to detach from the securityfs (NOT NULL)
safesetid_init_securityfs
ima_release_policyma_release_policy - start using the new measure policy rules.* Initially, ima_measure points to the default policy rules, now* point to the new policy rules, and remove the securityfs policy file,* assuming a valid policy.
ima_fs_init
evm_init_secfs