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:Update to newest version of parent after previous replacements* Returns: unrefcount newest version of parent

Proto:static struct aa_profile *update_to_newest_parent(struct aa_profile *new)

Type:struct aa_profile

Parameter:

TypeParameterName
struct aa_profile *new
828  parent = cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(parent, mutex_is_locked( & lock))
830  newest = aa_get_newest_profile - simple wrapper fn to wrap the label version*@p: profile (NOT NULL)* Returns refcount to newest version of the profile (maybe @p)* Requires: @p must be held with a valid refcount
833  If newest != parent Then
834  aa_put_profile - decrement refcount on profile @p*@p: profile (MAYBE NULL)
835  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(parent, newest)
836  Else aa_put_profile - decrement refcount on profile @p*@p: profile (MAYBE NULL)
839  Return newest
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