函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_path_perm - do permissions check & audit for @path*@op: operation being checked*@label: profile being enforced (NOT NULL)*@path: path to check permissions of (NOT NULL)*@flags: any additional path flags beyond what the profile specifies*@request:

函数原型:int aa_path_perm(const char *op, struct aa_label *label, const struct path *path, int flags, unsigned int request, struct path_cond *cond)

返回类型:int

参数:

类型参数名称
const char *op
struct aa_label *label
const struct path *path
intflags
unsigned intrequest
struct path_cond *cond
328  struct aa_perms perms = {}
330  char * buffer = NULL
333  flags或等于 delegate deleted files 按位或如果S_ISDIR(mode)则 path is a directory 否则0
335  buffer等于aa_get_buffer(false)
336  如果非buffer则返回:负ENOMEM
338  error等于fn_for_each_confined(label, profile, profile_path_perm(op, profile, path, buffer, request, cond, flags, & perms))
342  aa_put_buffer(buffer)
344  返回:error
调用者
名称描述
apparmor_path_rename
apparmor_file_open