函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int common_perm(const char *op, const struct path *path, unsigned int mask, struct path_cond *cond)

返回类型:int

参数:

类型参数名称
const char *op
const struct path *path
unsigned intmask
struct path_cond *cond
207  error等于0
209  label等于__begin_current_label_crit_section - current's confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* safe to call inside locks* The returned reference must be put with __end_current_label_crit_section()* This must NOT
210  如果非unconfined(label)则error等于aa_path_perm(op, label, path, 0, mask, cond)
212  __end_current_label_crit_section(label)
214  返回:error
调用者
名称描述
common_perm_condmmon_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
common_perm_dir_dentrymmon_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