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:label_modename

Proto:static const char *label_modename(struct aa_ns *ns, struct aa_label *label, int flags)

Type:char

Parameter:

TypeParameterName
struct aa_ns *ns
struct aa_label *label
intflags
1530  mode = -1 , count = 0
1533  If aa_ns_visible - test if @view is visible from @curr*@curr: namespace to treat as the parent (NOT NULL)*@view: namespace to test if visible from @curr (NOT NULL)*@subns: whether view of a subns is allowed* Returns: true if @view is visible from @curr else Then
1534  If mode == profile set to unconfined Then Continue
1540  count++
1541  If mode == -1 Then mode = mode
1543  Else if mode != mode Then Return "mixed"
1548  If count == 0 Then Return "-"
1550  If mode == -1 Then mode = profile set to unconfined
1554  Return aa_profile_mode_names[mode]
Caller
NameDescribe
aa_label_snxprintaa_label_snxprint - print a label name to a string buffer*@str: buffer to write to
aa_label_seq_xprint
aa_label_xprintk