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_cond - common permission wrapper around inode cond*@op: operation being checked*@path: location to check (NOT NULL)*@mask: requested permissions mask* Returns: %0 else error code if error or permission denied

Proto:static int common_perm_cond(const char *op, const struct path *path, unsigned int mask)

Type:int

Parameter:

TypeParameterName
const char *op
const struct path *path
unsigned intmask
227  struct path_cond cond = {i_uid, i_mode}
231  If Not path_mediated_fs(dentry) Then Return 0
234  Return mmon_perm - basic common permission check wrapper fn for paths*@op: operation being checked*@path: path to check permission of (NOT NULL)*@mask: requested permissions mask*@cond: conditional info for the permission request (NOT NULL)* Returns: %0 else
Caller
NameDescribe
apparmor_path_truncate
apparmor_path_chmod
apparmor_path_chown
apparmor_inode_getattr