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

Proto:int aa_path_perm(const char *op, struct aa_label *label, const struct path *path, int flags, unsigned int request, struct path_cond *cond)

Type:int

Parameter:

TypeParameterName
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 | If S_ISDIR(mode) Then path is a directory Else 0
335  buffer = aa_get_buffer(false)
336  If Not buffer Then Return -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  Return error
Caller
NameDescribe
apparmor_path_rename
apparmor_file_open