函数逻辑报告 | 
Source Code:security\apparmor\policy.c | 
Create Date:2022-07-27 21:33:57 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:aa_remove_profiles - remove profile(s) from the system*@policy_ns: namespace the remove is being done from*@subj: label attempting to remove policy*@fqname: name of the profile or namespace to remove (NOT NULL)*@size: size of the name* Remove a profile or
函数原型:ssize_t aa_remove_profiles(struct aa_ns *policy_ns, struct aa_label *subj, char *fqname, size_t size)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct aa_ns * | policy_ns | |
| struct aa_label * | subj | |
| char * | fqname | |
| size_t | size | 
| 1098 | struct aa_profile * profile = NULL | 
| 1100 | const char * ns_name = NULL | 
| 1101 | error等于0 | 
| 1103 | 如果fqname恒等于0则 | 
| 1109 | 如果fqname[0]恒等于':'则 | 
| 1116 | 如果非ns则 | 
| 1125 | 如果非name则 | 
| 1127 | mutex_lock_nested( & lock, level) | 
| 1128 | __aa_bump_ns_revision(ns) | 
| 1131 | 否则 | 
| 1133 | mutex_lock_nested( & lock, level) | 
| 1135 | 如果非profile则 | 
| 1141 | __aa_bump_ns_revision(ns) | 
| 1152 | 返回:size | 
| 1154 | fail_ns_lock : | 
| 1158 | fail : | 
| 1161 | 返回:error | 
| 名称 | 描述 | 
|---|---|
| profile_remove | .remove file hook fn to remove loaded policy | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |