函数逻辑报告 | 
Source Code:security\apparmor\domain.c | 
Create Date:2022-07-27 21:31:30 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:helper fn for change_hat* Returns: label for hat transition OR ERR_PTR. Does NOT return NULL
函数原型:static struct aa_label *build_change_hat(struct aa_profile *profile, const char *name, bool sibling)
返回类型:struct aa_label
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct aa_profile * | profile | |
| const char * | name | |
| bool | sibling | 
| 1002 | struct aa_profile * root, * hat = NULL | 
| 1003 | const char * info = NULL | 
| 1004 | error等于0 | 
| 1006 | 如果sibling且PROFILE_IS_HAT(profile)则 | 
| 1008 | 否则如果非sibling且非PROFILE_IS_HAT(profile)则 | 
| 1010 | 否则 | 
| 1016 | hat等于aa_find_child - find a profile by @name in @parent*@parent: profile to search (NOT NULL)*@name: profile name to search for (NOT NULL)* Returns: a refcounted profile or NULL if not found | 
| 1017 | 如果非hat则 | 
| 1019 | 如果COMPLAIN_MODE(profile)则 | 
| 1030 | audit : | 
| 1040 | 返回:label | 
| 名称 | 描述 | 
|---|---|
| change_hat | helper fn for changing into a hat* Returns: label for hat transition or ERR_PTR. Does not return NULL | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |