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_lookupn_ns - lookup the namespace matching @hname*@base: base list to start looking up profile name from (NOT NULL)*@hname: hierarchical ns name (NOT NULL)*@n: length of @hname* Requires: rcu_read_lock be held* Returns: unrefcounted ns pointer or

Proto:struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n)

Type:struct aa_ns

Parameter:

TypeParameterName
struct aa_ns *view
const char *hname
size_tn
202  ns = view
205  When split cycle
207  ns = __aa_findn_ns - find a namespace on a list by @name*@head: list to search for namespace on (NOT NULL)*@name: name of namespace to look for (NOT NULL)*@n: length of @name* Returns: unrefcounted namespace* Requires: rcu_read_lock be held
208  If Not ns Then Return NULL
211  n -= split + 2 - hname
212  hname = split + 2
215  If n Then Return __aa_findn_ns - find a namespace on a list by @name*@head: list to search for namespace on (NOT NULL)*@name: name of namespace to look for (NOT NULL)*@n: length of @name* Returns: unrefcounted namespace* Requires: rcu_read_lock be held
217  Return NULL
Caller
NameDescribe
aa_lookupn_nsaa_lookupn_ns - look up a policy namespace relative to @view*@view: namespace to search in (NOT NULL)*@name: name of namespace to find (NOT NULL)*@n: length of @name* Returns: a refcounted namespace on the list, or NULL if no namespace
__aa_lookup_ns