Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mmon_perm_rm - common permission wrapper for operations doing rm*@op: operation being checked*@dir: directory that the dentry is in (NOT NULL)*@dentry: dentry being rm'd (NOT NULL)*@mask: requested permission mask* Returns: %0 else error code if error or

Proto:static int common_perm_rm(const char *op, const struct path *dir, struct dentry *dentry, unsigned int mask)

Type:int

Parameter:

TypeParameterName
const char *op
const struct path *dir
struct dentry *dentry
unsigned intmask
268  inode = d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
269  struct path_cond cond = {}
271  If Not inode || Not path_mediated_fs(dentry) Then Return 0
274  uid = i_uid
275  mode = i_mode
277  Return mmon_perm_dir_dentry - common permission wrapper when path is dir, dentry*@op: operation being checked*@dir: directory of the dentry (NOT NULL)*@dentry: dentry to check (NOT NULL)*@mask: requested permissions mask*@cond: conditional info for the
Caller
NameDescribe
apparmor_path_unlink
apparmor_path_rmdir