函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\label.c Create Date:2022-07-27 21:44:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aa_label_next_not_in_set - return the next profile of @sub not in @set*@I: label iterator*@set: label to test against*@sub: label to if is subset of @set* Returns: profile in @sub that is not in @set, with iterator set pos after* else NULL if @sub is a

函数原型:struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, struct aa_label *set, struct aa_label *sub)

返回类型:struct aa_profile

参数:

类型参数名称
struct label_it *I
struct aa_label *set
struct aa_label *sub
506  AA_BUG(!set)
507  AA_BUG(!I)
508  AA_BUG(i < 0)
509  AA_BUG(i > size)
510  AA_BUG(!sub)
511  AA_BUG(j < 0)
512  AA_BUG(j > size)
514 j小于sizei小于size循环
515  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
517  如果res恒等于0则
518  j自加
519  i自加
520  否则如果res大于0则i自加
522  否则返回:vec[(j)++]
526  如果j小于size则返回:vec[(j)++]
529  返回:NULL
调用者
名称描述
aa_label_is_subsetaa_label_is_subset - test if @sub is a subset of @set*@set: label to test against*@sub: label to test if is subset of @set* Returns: true if @sub is subset of @set* else false