Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__file_sock_perm

Proto:static int __file_sock_perm(const char *op, struct aa_label *label, struct aa_label *flabel, struct file *file, unsigned int request, unsigned int denied)

Type:int

Parameter:

TypeParameterName
const char *op
struct aa_label *label
struct aa_label *flabel
struct file *file
unsigned intrequest
unsigned intdenied
575  sock = needed for tty driver, and maybe others
578  AA_BUG(!sock)
581  If Not denied && aa_label_is_subset(flabel, label) Then Return 0
585  error = aa_sock_file_perm(label, op, request, sock)
586  If denied Then
589  last_error(error, aa_sock_file_perm(flabel, op, request, sock))
591  If Not error Then update_file_ctx(file_ctx(file), label, request)
594  Return error
Caller
NameDescribe
aa_file_permaa_file_perm - do permission revalidation check & audit for @file*@op: operation being checked*@label: label being enforced (NOT NULL)*@file: file to revalidate access permissions on (NOT NULL)*@request: requested permissions*@in_atomic: whether