Function report |
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 activity | Download SCCT | Chinese |
Name:aa_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
Proto:int aa_file_perm(const char *op, struct aa_label *label, struct file *file, unsigned int request, bool in_atomic)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | op | |
struct aa_label * | label | |
struct file * | file | |
unsigned int | request | |
bool | in_atomic |
613 | error = 0 |
632 | If unconfined(label) || unconfined(flabel) || Not denied && aa_label_is_subset(flabel, label) Then |
635 | Go to done |
642 | If mnt && path_mediated_fs(dentry) Then error = __file_path_perm(op, label, flabel, file, request, denied, in_atomic) |
646 | Else if S_ISSOCK(i_mode) Then error = __file_sock_perm(op, label, flabel, file, request, denied) |
649 | aa_put_label(flabel) |
651 | done : |
652 | Return error |
Name | Describe |
---|---|
revalidate_tty | |
match_file | |
common_file_perm |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |