Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns)

Type:char

Parameter:

TypeParameterName
struct aa_ns *curr
struct aa_ns *view
boolsubns
64  If curr == view Then Return ""
67  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
74  Return hname + strlen - Find the length of a string*@s: The string to be sized + 2
77  Return aa_hidden_ns_name
Caller
NameDescribe
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