Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_label_seq_xprint

Proto:void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, struct aa_label *label, int flags, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
struct seq_file *f
struct aa_ns *ns
struct aa_label *label
intflags
gfp_tgfp
1740  AA_BUG(!f)
1741  AA_BUG(!label)
1743  If Not ached label name is present and visible*@label->hname only exists if label is namespace hierachical Then
1747  len = aa_label_asxprint - allocate a string buffer and print label into it*@strp: Returns - the allocated buffer with the label name
1748  If len == -1 Then
1749  AA_DEBUG("label print error")
1750  Return
1752  seq_printf(f, "%s", str)
1753  kfree(str)
1754  Else if any visible label is not unconfined the display_mode returns true Then seq_printf(f, "%s (%s)", hname, label_modename(ns, label, flags))
1757  Else seq_printf(f, "%s", hname)
Caller
NameDescribe
aa_label_seq_print