函数逻辑报告 |
Source Code:security\apparmor\mount.c |
Create Date:2022-07-27 21:47:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_pivotroot
函数原型:int aa_pivotroot(struct aa_label *label, const struct path *old_path, const struct path *new_path)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct aa_label * | label | |
| const struct path * | old_path | |
| const struct path * | new_path |
| 695 | char * old_buffer = NULL, * new_buffer = NULL, * info = NULL |
| 702 | old_buffer等于aa_get_buffer(false) |
| 703 | new_buffer等于aa_get_buffer(false) |
| 705 | 如果非old_buffer或非new_buffer则转到:out |
| 710 | 如果非target则 |
| 714 | 否则如果非是错误则 |
| 715 | error等于aa_replace_current_label - replace the current tasks label*@label: new label (NOT NULL)* Returns: 0 or error on failure |
| 716 | 如果error则 |
| 718 | aa_put_label(target) |
| 719 | 转到:out |
| 724 | out : |
| 725 | aa_put_buffer(old_buffer) |
| 726 | aa_put_buffer(new_buffer) |
| 728 | 返回:error |
| 730 | fail : |
| 738 | 转到:out |
| 名称 | 描述 |
|---|---|
| apparmor_sb_pivotroot |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |