函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:profile_path_perm

函数原型:static int profile_path_perm(const char *op, struct aa_profile *profile, const struct path *path, char *buffer, unsigned int request, struct path_cond *cond, int flags, struct aa_perms *perms)

返回类型:int

参数:

类型参数名称
const char *op
struct aa_profile *profile
const struct path *path
char *buffer
unsigned intrequest
struct path_cond *cond
intflags
struct aa_perms *perms
301  如果profile_unconfined(profile)则返回:0
304  error等于path_name(op, & label, path, flags | path_flags, buffer, & name, cond, request)
307  如果error则返回:error
309  返回:__aa_path_perm(op, profile, name, request, cond, flags, perms)
调用者
名称描述
aa_path_permaa_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:
__file_path_perm