函数逻辑报告 | 
Source Code:security\apparmor\file.c | 
Create Date:2022-07-27 21:42:31 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__file_path_perm
函数原型:static int __file_path_perm(const char *op, struct aa_label *label, struct aa_label *flabel, struct file *file, unsigned int request, unsigned int denied, bool in_atomic)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char * | op | |
| struct aa_label * | label | |
| struct aa_label * | flabel | |
| struct file * | file | |
| unsigned int | request | |
| unsigned int | denied | |
| bool | in_atomic | 
| 530 | 如果非denied且aa_label_is_subset(flabel, label)则返回:0 | 
| 534 | flags等于 delegate deleted files 按位或如果S_ISDIR(mode)则 path is a directory 否则0 | 
| 535 | buffer等于aa_get_buffer(in_atomic) | 
| 540 | error等于fn_for_each_not_in_set(flabel, label, profile, profile_path_perm(op, profile, & f_path, buffer, request, & cond, flags, & perms)) | 
| 566 | aa_put_buffer(buffer) | 
| 568 | 返回:error | 
| 名称 | 描述 | 
|---|---|
| aa_file_perm | 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |