函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_label_seq_xprint

函数原型:void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp)

返回类型:void

参数:

类型参数名称
struct seq_file *f
struct aa_ns *ns
struct aa_label *label
intflags
gfp_tgfp
1740  AA_BUG(!f)
1741  AA_BUG(!label)
1743  如果非ached label name is present and visible*@label->hname only exists if label is namespace hierachical
1747  len等于aa_label_asxprint - allocate a string buffer and print label into it*@strp: Returns - the allocated buffer with the label name
1748  如果len恒等于负1则
1749  AA_DEBUG("label print error")
1750  返回
1752  seq_printf(f, "%s", str)
1753  释放内存
1754  否则如果 any visible label is not unconfined the display_mode returns true seq_printf(f, "%s (%s)", hname, label_modename(ns, label, flags))
1757  否则seq_printf(f, "%s", hname)
调用者
名称描述
aa_label_seq_print