Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\file.c Create Date:2022-07-28 19:54:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__aa_path_perm

Proto:int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, unsigned int request, struct path_cond *cond, int flags, struct aa_perms *perms)

Type:int

Parameter:

TypeParameterName
const char *op
struct aa_profile *profile
const char *name
unsigned intrequest
struct path_cond *cond
intflags
struct aa_perms *perms
281  e = 0
283  If profile_unconfined(profile) Then Return 0
285  aa_str_perms - find permission that match @name*@dfa: to match against (MAYBE NULL)*@state: state to start matching in*@name: string to match against dfa (NOT NULL)*@cond: conditions to consider for permission set computation (NOT NULL)*@perms: Returns -
286  If request & ~allow Then e = -EACCES
288  Return aa_audit_file - handle the auditing of file operations*@profile: the profile being enforced (NOT NULL)*@perms: the permissions computed for the request (NOT NULL)*@op: operation being mediated*@request: permissions requested*@name: name of object being
Caller
NameDescribe
profile_path_perm