函数逻辑报告 |
Source Code:security\apparmor\domain.c |
Create Date:2022-07-27 21:31:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:helper fn for changing into a hat* Returns: label for hat transition or ERR_PTR. Does not return NULL
函数原型:static struct aa_label *change_hat(struct aa_label *label, const char *hats[], int count, int flags)
返回类型:struct aa_label
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_label * | label | |
const char * | hats | |
int | count | |
int | flags |
1050 | struct aa_profile * profile, * root, * hat = NULL |
1053 | bool sibling = false |
1061 | 如果PROFILE_IS_HAT(labels_profile(label))则sibling = true |
1068 | 如果sibling且PROFILE_IS_HAT(profile)则 |
1070 | 否则如果非sibling且非PROFILE_IS_HAT(profile)则 |
1072 | 否则 |
1077 | 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 |
1079 | 如果非hat则 |
1080 | 如果非COMPLAIN_MODE(profile)则转到:outer_continue |
1083 | 否则如果非PROFILE_IS_HAT(hat)则 |
1092 | 转到:build |
1093 | outer_continue : |
1102 | name = NULL |
1104 | 如果非链表为空则 |
1110 | info等于"no hats defined" |
1113 | fail : |
1122 | 如果count大于1或COMPLAIN_MODE(profile)则 |
1128 | 返回:错误号 |
1130 | build : |
1131 | new等于fn_label_build_in_ns(label, profile, GFP_KERNEL, helper fn for change_hat* Returns: label for hat transition OR ERR_PTR. Does NOT return NULL, aa_get_label( & label)) |
1134 | 如果非new则 |
1140 | 返回:new |
名称 | 描述 |
---|---|
aa_change_hat | aa_change_hat - change hat to/from subprofile*@hats: vector of hat names to try changing into (MAYBE NULL if @count == 0)*@count: number of hat names in @hats*@token: magic value to validate the hat change*@flags: flags affecting behavior of the change |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |