函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mmon_perm_create - common permission wrapper for operations doing create*@op: operation being checked*@dir: directory that dentry will be created in (NOT NULL)*@dentry: dentry to create (NOT NULL)*@mask: request permission mask*@mode: created file mode*

函数原型:static int common_perm_create(const char *op, const struct path *dir, struct dentry *dentry, unsigned int mask, umode_t mode)

返回类型:int

参数:

类型参数名称
const char *op
const struct path *dir
struct dentry *dentry
unsigned intmask
umode_tmode
293  struct path_cond cond = {current_fsuid(), mode}
295  如果非path_mediated_fs(dentry)则返回:0
298  返回: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
调用者
名称描述
apparmor_path_mkdir
apparmor_path_mknod
apparmor_path_symlink