函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_label_init

函数原型:bool aa_label_init(struct aa_label *label, int size, gfp_t gfp)

返回类型:bool

参数:

类型参数名称
struct aa_label *label
intsize
gfp_tgfp
403  AA_BUG(!label)
404  AA_BUG(size < 1)
406  如果aa_alloc_secid - allocate a new secid for a profile*@label: the label to allocate a secid for*@gfp: memory allocation flags* Returns: 0 with @label->secid initialized* <0 returns error with @label->secid set to AA_SECID_INVALID小于0则返回:false
409  size等于size
410  vec[size] = NULL
411  初始化对象
412  RB_CLEAR_NODE( & node)
414  返回:true
调用者
名称描述
aa_label_allocaa_label_alloc - allocate a label with a profile vector of @size length*@size: size of profile vector in the label*@proxy: proxy to use OR null if to allocate a new one*@gfp: memory allocation type* Returns: new label* else NULL if failed