函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:label_modename

函数原型:static const char *label_modename(struct aa_ns *ns, struct aa_label *label, int flags)

返回类型:char

参数:

类型参数名称
struct aa_ns *ns
struct aa_label *label
intflags
1530  mode等于负1, count等于0
1533  如果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
1534  如果mode恒等于profile set to unconfined 则继续下一循环
1540  count自加
1541  如果mode恒等于负1则mode等于mode
1543  否则如果mode不等于mode则返回:"mixed"
1548  如果count恒等于0则返回:"-"
1550  如果mode恒等于负1则mode等于profile set to unconfined
1554  返回:aa_profile_mode_names[mode]
调用者
名称描述
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