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

Proto:static int ns_cmp(struct aa_ns *a, struct aa_ns *b)

Type:int

Parameter:

TypeParameterName
struct aa_ns *a
struct aa_ns *b
111  AA_BUG(!a)
112  AA_BUG(!b)
113  AA_BUG(!hname)
114  AA_BUG(!hname)
116  If a == b Then Return 0
119  res = level - level
120  If res Then Return res
123  Return strcmp(hname, hname)
Caller
NameDescribe
profile_cmpprofile_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
labelset_of_mergelabelset_of_merge - find which labelset a merged label should be inserted*@a: label to merge and insert*@b: label to merge and insert* Returns: labelset that the merged label should be inserted into