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

Proto:static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn)

Type:int

Parameter:

TypeParameterName
struct aa_profile **a
intan
struct aa_profile **b
intbn
169  AA_BUG(!a)
170  AA_BUG(! * a)
171  AA_BUG(!b)
172  AA_BUG(! * b)
173  AA_BUG(an <= 0)
174  AA_BUG(bn <= 0)
176  When i < an && i < bn cycle
177  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
179  If res != 0 Then Return res
183  Return an - bn
Caller
NameDescribe
label_cmplabel_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@b: label to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b
__vec_find__vec_find - find label that matches @vec in label set*@vec: vec of profiles to find matching label for (NOT NULL)*@n: length of @vec* Requires: @vec_labelset(vec) lock held* caller to hold a valid ref on l* Returns: ref counted @label if matching label