函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__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

函数原型:struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n)

返回类型:struct aa_ns

参数:

类型参数名称
struct aa_ns *view
const char *hname
size_tn
202  ns等于view
205 split循环
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  如果非ns则返回:NULL
211  n减等于split加2减hname
212  hname等于split加2
215  如果n则返回:__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  返回:NULL
调用者
名称描述
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