Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\label.c Create Date:2022-07-28 19:54:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, struct aa_label *set, struct aa_label *sub)

Type:struct aa_profile

Parameter:

TypeParameterName
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  When j < size && i < size cycle
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  If res == 0 Then
518  j++
519  i++
520  Else if res > 0 Then i++
522  Else Return vec[(j)++]
526  If j < size Then Return vec[(j)++]
529  Return NULL
Caller
NameDescribe
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