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_find_merge - find label that is equiv to merge of @a and @b*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)* Requires: labels be fully constructed with a valid ns* Returns: ref counted label that is equiv to merge of

Proto:struct aa_label *aa_label_find_merge(struct aa_label *a, struct aa_label *b)

Type:struct aa_label

Parameter:

TypeParameterName
struct aa_label *a
struct aa_label *b
1156  struct aa_label * label, * ar = NULL, * br = NULL
1159  AA_BUG(!a)
1160  AA_BUG(!b)
1162  If label_is_stale(a) Then a = ar = aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
1164  If label_is_stale(b) Then b = br = aa_get_newest_label - find the newest version of @l*@l: the label to check for newer versions of* Returns: refcounted newest version of @l taking into account* replacement, renames and removals* return @l.
1166  ls = labelset_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
1167  read_lock_irqsave( & lock, flags)
1168  label = __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
1169  read_unlock_irqrestore( & lock, flags)
1170  aa_put_label(ar)
1171  aa_put_label(br)
1173  Return label