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:profile_path_perm

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If profile_unconfined(profile) Then Return 0
304  error = path_name(op, & label, path, flags | path_flags, buffer, & name, cond, request)
307  If error Then Return error
309  Return __aa_path_perm(op, profile, name, request, cond, flags, perms)
Caller
NameDescribe
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