函数逻辑报告 |
Source Code:security\apparmor\file.c |
Create Date:2022-07-27 21:42:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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:
函数原型:int aa_path_perm(const char *op, struct aa_label *label, const struct path *path, int flags, unsigned int request, struct path_cond *cond)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const char * | op | |
| struct aa_label * | label | |
| const struct path * | path | |
| int | flags | |
| unsigned int | request | |
| struct path_cond * | cond |
| 330 | char * buffer = NULL |
| 333 | flags或等于 delegate deleted files 按位或如果S_ISDIR(mode)则 path is a directory 否则0 |
| 335 | buffer等于aa_get_buffer(false) |
| 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 | 返回:error |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |