Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_label_acntsxprint - allocate a __counted string buffer and print label*@strp: buffer to write to

Proto:int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
char __counted **strp
struct aa_ns *ns
struct aa_label *label
intflags
gfp_tgfp
1693  AA_BUG(!strp)
1694  AA_BUG(!label)
1696  size = aa_label_snxprint - print a label name to a string buffer*@str: buffer to write to
1697  If size < 0 Then Return size
1700  strp = aa_str_alloc(size + 1, gfp)
1701  If Not strp Then Return -ENOMEM
1703  Return aa_label_snxprint - print a label name to a string buffer*@str: buffer to write to
Caller
NameDescribe
aa_update_label_nameaa_update_label_name - update a label to have a stored name*@ns: ns being viewed from (NOT NULL)*@label: label to update (NOT NULL)*@gfp: type of memory allocation* Requires: labels_set(label) not locked in caller* note: only updates the label name if it