Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void securityfs_remove(struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
299  If Not dentry || IS_ERR(dentry) Then Return
302  dir = d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
303  inode_lock(dir)
304  If simple_positive(dentry) Then
305  If d_is_dir(dentry) Then simple_rmdir(dir, dentry)
307  Else simple_unlink(dir, dentry)
309  dput(dentry)
311  inode_unlock(dir)
312  simple_release_fs( & mount, & mount_count)
Caller
NameDescribe
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