函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lib.c Create Date:2022-07-27 21:28:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:bool aa_policy_init(struct aa_policy *policy, const char *prefix, const char *name, gfp_t gfp)

返回类型:bool

参数:

类型参数名称
struct aa_policy *policy
const char *prefix
const char *name
gfp_tgfp
494  如果prefix
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  如果hname输出格式化串
498  否则
499  hname等于aa_str_alloc(strlen - Find the length of a string*@s: The string to be sized + 1, gfp)
500  如果hnamestrcpy(hname, name)
503  如果非hname则返回: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  初始化链表头
509  初始化链表头
511  返回:true
调用者
名称描述
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.