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:vec_find - find label @l in label set*@vec: array of profiles to find equiv label for (NOT NULL)*@n: length of @vec* Returns: refcounted label if @vec equiv is in tree* else NULL if @vec equiv is not in tree

Proto:static struct aa_label *vec_find(struct aa_profile **vec, int n)

Type:struct aa_label

Parameter:

TypeParameterName
struct aa_profile **vec
intn
812  AA_BUG(!vec)
813  AA_BUG(! * vec)
814  AA_BUG(n <= 0)
816  ls = vec_labelset(vec, n)
817  read_lock_irqsave( & lock, flags)
818  label = __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
819  read_unlock_irqrestore( & lock, flags)
821  Return label
Caller
NameDescribe
aa_vec_find_or_create_label
aa_label_findaa_label_find - find label @label in label set*@label: label to find (NOT NULL)* Requires: caller to hold a valid ref on l* Returns: refcounted @label if @label is in tree* refcounted label that is equiv to @label in tree* else NULL if @label or equiv is
aa_label_strn_parseaa_label_strn_parse - parse, validate and convert a text string to a label*@base: base label to use for lookups (NOT NULL)*@str: null terminated text string (NOT NULL)*@n: length of str to parse, will stop at \0 if encountered before n*@gfp: allocation