Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apparmor_secid_to_secctx

Proto:int apparmor_secid_to_secctx(unsigned int secid, char **secdata, unsigned int *seclen)

Type:int

Parameter:

TypeParameterName
unsigned intsecid
char **secdata
unsigned int *seclen
73  label = see label for inverse aa_label_to_secid
76  AA_BUG(!seclen)
78  If Not label Then Return -EINVAL
81  If secdata Then len = aa_label_asxprint(secdata, root_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED | FLAG_ABS_ROOT, DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear)
86  Else len = aa_label_snxprint(NULL, 0, root_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED | FLAG_ABS_ROOT)
90  If len < 0 Then Return -ENOMEM
93  seclen = len
95  Return 0