函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_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

函数原型:struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, gfp_t gfp)

返回类型:struct aa_profile

参数:

类型参数名称
const char *hname
struct aa_proxy *proxy
gfp_tgfp
262  profile等于分配内存并置零
264  如果非profile则返回:NULL
267  如果非aa_policy_init - initialize a policy structure*@policy: policy to initialize (NOT NULL)*@prefix: prefix name if any is required则转到:fail
269  如果非aa_label_init( & label, 1, gfp)则转到:fail
273  如果非proxy
274  proxy等于aa_alloc_proxy( & label, gfp)
275  如果非proxy则转到:fail
277  否则aa_get_proxy(proxy)
279  proxy等于proxy
281  hname等于hname
282  flags或等于 label is a profile
283  vec[0]等于profile
286  返回:profile
288  fail :
289  aa_free_profile - free a profile*@profile: the profile to free (MAYBE NULL)* Free a profile, its hats and null_profile
291  返回:NULL
调用者
名称描述
aa_new_null_profileaa_new_null_profile - create or find a null-X learning profile*@parent: profile that caused this profile to be created (NOT NULL)*@hat: true if the null- learning profile is a hat*@base: name to base the null profile off of*@gfp: type of allocation
unpack_profilepack_profile - unpack a serialized profile*@e: serialized data extent information (NOT NULL)* NOTE: unpack profile sets audit struct if there is a 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.