函数逻辑报告 |
Source Code:security\apparmor\file.c |
Create Date:2022-07-27 21:42:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int aa_file_perm(const char *op, struct aa_label *label, struct file *file, unsigned int request, bool in_atomic)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | op | |
struct aa_label * | label | |
struct file * | file | |
unsigned int | request | |
bool | in_atomic |
613 | error等于0 |
621 | flabel等于cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(label) |
632 | 如果unconfined(label)或unconfined(flabel)或非denied且aa_label_is_subset(flabel, label)则 |
635 | 转到:done |
642 | 如果mnt且path_mediated_fs(dentry)则error等于__file_path_perm(op, label, flabel, file, request, denied, in_atomic) |
649 | aa_put_label(flabel) |
651 | done : |
652 | 返回:error |
名称 | 描述 |
---|---|
revalidate_tty | |
match_file | |
common_file_perm |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |