Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aafs_remove - removes a file or directory from the apparmorfs filesystem*@dentry: dentry of the file/directory/symlink to removed.

Proto:static void aafs_remove(struct dentry *dentry)

Type:void

Parameter:

TypeParameterName
struct dentry *dentry
384  If Not dentry || IS_ERR(dentry) Then Return
387  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.
388  inode_lock(dir)
389  If simple_positive(dentry) Then
390  If d_is_dir(dentry) Then simple_rmdir(dir, dentry)
392  Else simple_unlink(dir, dentry)
394  delete a dentry
395  dput(dentry)
397  inode_unlock(dir)
398  simple_release_fs( & aafs_mnt, & aafs_count)
Caller
NameDescribe
remove_rawdata_dents
__aafs_profile_rmdirRequires: @profile->ns->lock held
__aafs_ns_rmdirRequires: @ns->lock held