Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int profile_cmp(struct aa_profile *a, struct aa_profile *b)

Type:int

Parameter:

TypeParameterName
struct aa_profile *a
struct aa_profile *b
139  AA_BUG(!a)
140  AA_BUG(!b)
141  AA_BUG(!ns)
142  AA_BUG(!ns)
143  AA_BUG(!hname)
144  AA_BUG(!hname)
146  If a == b || hname == hname Then Return 0
148  res = s_cmp - compare ns for label set ordering*@a: ns to compare (NOT NULL)*@b: ns to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b
149  If res Then Return res
152  Return strcmp(hname, hname)
Caller
NameDescribe
vec_cmpvec_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@vec: vector of profiles to compare (NOT NULL)*@n: length of @vec* Returns: <0 if a < vec* ==0 if a == vec* >0 if a > vec
sort_cmp
uniqueassumes vec is sorted* Assumes @vec has null terminator at vec[n], and will null terminate* vec[n - dups]
aa_vec_uniqueaa_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
__aa_label_next_not_in_setaa_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
aa_label_next_in_mergeaa_label_next_in_merge - find the next profile when merging @a and @b*@I: label iterator*@a: label to merge*@b: label to merge* Returns: next profile* else null if no more profiles
label_merge_cmplabel_merge_cmp - cmp of @a merging with @b against @z for set ordering*@a: label to merge then compare (NOT NULL)*@b: label to merge then compare (NOT NULL)*@z: label to compare merge against (NOT NULL)* Assumes: using the most recent versions of @a, @b,