Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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)*

Proto:static int replacement_allowed(struct aa_profile *profile, int noreplace, const char **info)

Type:int

Parameter:

TypeParameterName
struct aa_profile *profile
intnoreplace
const char **info
583  If profile Then
585  info = "cannot replace immutable profile"
586  Return -EPERM
587  Else if noreplace Then
588  info = "profile already exists"
589  Return -EEXIST
592  Return 0
Caller
NameDescribe
__lookup_replace__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