Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__list_lookup_parent

Proto:static struct aa_profile *__list_lookup_parent(struct list_head *lh, struct aa_profile *profile)

Type:struct aa_profile

Parameter:

TypeParameterName
struct list_head *lh
struct aa_profile *profile
707  base = asename - find the last component of an hname*@name: hname to find the base profile name component of (NOT NULL)* Returns: the tail (base profile name) name component of an hname
708  len = base - hname
712  If len <= 2 Then Return NULL
714  len -= 2
717  If new == profile Then Continue
719  If strncmp(hname, hname, len) == 0 && hname[len] == 0 Then Return new
724  Return NULL
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