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

Proto:static int label_merge_cmp(struct aa_label *a, struct aa_label *b, struct aa_label *z)

Type:int

Parameter:

TypeParameterName
struct aa_label *a
struct aa_label *b
struct aa_label *z
978  struct aa_profile * p = NULL
979  struct label_it i = {}
982  AA_BUG(!a)
983  AA_BUG(!b)
984  AA_BUG(!z)
986  When k < size && (p = aa_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) cycle
989  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
991  If res != 0 Then Return res
995  If p Then Return 1
997  Else if k < size Then Return -1
999  Return 0
Caller
NameDescribe
__label_find_merge__label_find_merge - find label that is equiv to merge of @a and @b*@ls: set of labels to search (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)* Requires: ls->lock read_lock held* Returns: ref counted label that is