Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-28 19:50:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__first_profile - find the first profile in a namespace*@root: namespace that is root of profiles being displayed (NOT NULL)*@ns: namespace to start in (NOT NULL)* Returns: unrefcounted profile or NULL if no profile* Requires: profile->ns.lock to be held

Proto:static struct aa_profile *__first_profile(struct aa_ns *root, struct aa_ns *ns)

Type:struct aa_profile

Parameter:

TypeParameterName
struct aa_ns *root
struct aa_ns *ns
2137  AA_BUG(!root)
2138  AA_BUG(ns && !mutex_is_locked( & lock))
2140  When ns cycle
2141  If Not list_empty - tests whether a list is empty*@head: the list to test. Then Return list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & profiles, structaa_profile, list)
2145  Return NULL
Caller
NameDescribe
next_profilext_profile - step to the next profile in where ever it may be*@root: root namespace (NOT NULL)*@profile: current profile (NOT NULL)* Returns: next profile or NULL if there isn't one
p_startp_start - start a depth first traversal of profile tree*@f: seq_file to fill*@pos: current position* Returns: first profile under current namespace or NULL if none found* acquires first ns->lock