Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_policy_init - initialize a policy structure*@policy: policy to initialize (NOT NULL)*@prefix: prefix name if any is required

Proto:bool aa_policy_init(struct aa_policy *policy, const char *prefix, const char *name, gfp_t gfp)

Type:bool

Parameter:

TypeParameterName
struct aa_policy *policy
const char *prefix
const char *name
gfp_tgfp
494  If prefix Then
495  hname = aa_str_alloc(strlen - Find the length of a string*@s: The string to be sized + strlen - Find the length of a string*@s: The string to be sized + 3, gfp)
496  If hname Then sprintf(hname, "%s//%s", prefix, name)
498  Else
499  hname = aa_str_alloc(strlen - Find the length of a string*@s: The string to be sized + 1, gfp)
500  If hname Then strcpy(hname, name)
503  If Not hname Then Return false
505  hname = hname
507  name = 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
508  Initialization list head
509  Initialization list head
511  Return true
Caller
NameDescribe
aa_alloc_profileaa_alloc_profile - allocate, initialize and return a new profile*@hname: name of the profile (NOT NULL)*@gfp: allocation type* Returns: refcount profile or NULL on failure
alloc_nsalloc_ns - allocate, initialize and return a new namespace*@prefix: parent namespace name (MAYBE NULL)*@name: a preallocated name (NOT NULL)* Returns: refcounted namespace or NULL on failure.