函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apparmor_secid_to_secctx

函数原型:int apparmor_secid_to_secctx(unsigned int secid, char **secdata, unsigned int *seclen)

返回类型:int

参数:

类型参数名称
unsigned intsecid
char **secdata
unsigned int *seclen
73  label等于see label for inverse aa_label_to_secid
76  AA_BUG(!seclen)
78  如果非label则返回:负EINVAL
81  如果secdatalen等于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  否则len等于aa_label_snxprint(NULL, 0, root_ns, label, FLAG_SHOW_MODE | FLAG_VIEW_SUBNS | FLAG_HIDDEN_UNCONFINED | FLAG_ABS_ROOT)
90  如果len小于0则返回:负ENOMEM
93  seclen等于len
95  返回:0