Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__lookup_parent - lookup the parent of a profile of name @hname*@ns: namespace to lookup profile in (NOT NULL)*@hname: hierarchical profile name to find parent of (NOT NULL)* Lookups up the parent of a fully qualified profile name, the profile* that

Proto:static struct aa_policy *__lookup_parent(struct aa_ns *ns, const char *hname)

Type:struct aa_policy

Parameter:

TypeParameterName
struct aa_ns *ns
const char *hname
364  struct aa_profile * profile = NULL
367  policy = base
369  When split cycle
370  profile = __strn_find_child - find a profile on @head list using substring of @name*@head: list to search (NOT NULL)*@name: name of profile (NOT NULL)*@len: length of @name substring to match* Requires: rcu_read_lock be held* Returns: unrefcounted profile ptr, or
372  If Not profile Then Return NULL
374  policy = base
375  hname = split + 2
376  split = strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
378  If Not profile Then Return base
380  Return base
Caller
NameDescribe
aa_replace_profilesaa_replace_profiles - replace profile(s) on the profile list*@policy_ns: namespace load is occurring on*@label: label that is attempting to load/replace policy*@mask: permission mask*@udata: serialized data stream (NOT NULL)* unpack and replace a profile