函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_na_name - Find the ns name to display for @view from @curr*@curr - current namespace (NOT NULL)*@view - namespace attempting to view (NOT NULL)*@subns - are subns visible* Returns: name of @view visible from @curr

函数原型:const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns)

返回类型:char

参数:

类型参数名称
struct aa_ns *curr
struct aa_ns *view
boolsubns
64  如果curr恒等于view则返回:""
67  如果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
74  返回:hnamestrlen - Find the length of a string*@s: The string to be sized加2
77  返回:aa_hidden_ns_name
调用者
名称描述
match_componentmatch a profile and its associated ns component if needed* Assumes visibility test has already been done.* If a subns profile is not to be matched should be prescreened with* visibility test.
aa_profile_snxprintaa_profile_snxprint - print a profile name to a buffer*@str: buffer to write to