Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_label_init

Proto:bool aa_label_init(struct aa_label *label, int size, gfp_t gfp)

Type:bool

Parameter:

TypeParameterName
struct aa_label *label
intsize
gfp_tgfp
403  AA_BUG(!label)
404  AA_BUG(size < 1)
406  If 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 Then Return false
409  size = size
410  vec[size] = NULL
411  kref_init - initialize object.*@kref: object in question.
412  RB_CLEAR_NODE( & node)
414  Return true
Caller
NameDescribe
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