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:__lookup_replace - lookup replacement information for a profile*@ns - namespace the lookup occurs in*@hname - name of profile to lookup*@noreplace - true if not replacing an existing profile*@p - Returns: profile to be replaced*@info - Returns: info

Proto:static int __lookup_replace(struct aa_ns *ns, const char *hname, bool noreplace, struct aa_profile **p, const char **info)

Type:int

Parameter:

TypeParameterName
struct aa_ns *ns
const char *hname
boolnoreplace
struct aa_profile **p
const char **info
800  p = aa_get_profile - increment refcount on profile @p*@p: profile (MAYBE NULL)* Returns: pointer to @p if @p is NULL will return NULL* Requires: @p must be held with valid refcount when called
801  If p Then
802  error = placement_allowed - test to see if replacement is allowed*@profile: profile to test if it can be replaced (MAYBE NULL)*@noreplace: true if replacement shouldn't be allowed but addition is okay*@info: Returns - info about why replacement failed (NOT NULL)*
803  If error Then
804  info = "profile can not be replaced"
805  Return error
809  Return 0
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