函数逻辑报告 |
Source Code:security\apparmor\label.c |
Create Date:2022-07-27 21:43:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_vec_unique - canonical sort and unique a list of profiles*@n: number of refcounted profiles in the list (@n > 0)*@vec: list of profiles to sort and merge* Returns: the number of duplicates eliminated == references put* If @flags & VEC_FLAG_TERMINATE
函数原型:int aa_vec_unique(struct aa_profile **vec, int n, int flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_profile ** | vec | |
int | n | |
int | flags |
264 | dups等于0 |
270 | 如果n大于8则 |
272 | dups等于assumes vec is sorted* Assumes @vec has null terminator at vec[n], and will null terminate* vec[n - dups] |
273 | 转到:out |
282 | res等于profile_cmp - profile comparison for set ordering*@a: profile to compare (NOT NULL)*@b: profile to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b |
284 | 如果res恒等于0则 |
287 | dups自加 |
288 | 转到:continue_outer |
293 | pos自加 |
298 | continue_outer : |
304 | out : |
305 | 如果flags按位与VEC_FLAG_TERMINATE则vec[n - dups] = NULL |
308 | 返回:dups |
名称 | 描述 |
---|---|
label_merge_insert | label_merge_insert - create a new label by merging @a and @b*@new: preallocated label to merge into (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)* Requires: preallocated proxy* Returns: ref counted label either |
aa_label_strn_parse | aa_label_strn_parse - parse, validate and convert a text string to a label*@base: base label to use for lookups (NOT NULL)*@str: null terminated text string (NOT NULL)*@n: length of str to parse, will stop at \0 if encountered before n*@gfp: allocation |
__label_update | __label_update - insert updated version of @label into labelset*@label - the label to update/replace* Returns: new label that is up to date* else NULL on failure* Requires: @ns lock be held* Note: worst case is the stale @label does not get updated and has |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |