函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_fqlookupn_profile

函数原型:struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, const char *fqname, size_t n)

返回类型:struct aa_profile

参数:

类型参数名称
struct aa_label *base
const char *fqname
size_tn
464  name等于aa_splitn_fqname(fqname, n, & ns_name, & ns_len)
465  如果ns_name
466  ns等于aa_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
467  如果非ns则返回:NULL
469  否则ns等于aa_get_ns - increment references count on @ns*@ns: namespace to increment reference count of (MAYBE NULL)* Returns: pointer to @ns, if @ns is NULL returns NULL* Requires: @ns must be held with valid refcount when called
472  如果nameprofile等于aa_lookup_profile - find a profile by its full or partial name*@ns: the namespace to start from (NOT NULL)*@hname: name to do lookup on. Does not contain namespace prefix (NOT NULL)*@n: size of @hname* Returns: refcounted profile or NULL if not found
474  否则如果nsprofile等于aa_get_newest_profile - simple wrapper fn to wrap the label version*@p: profile (NOT NULL)* Returns refcount to newest version of the profile (maybe @p)* Requires: @p must be held with a valid refcount
477  否则profile = NULL
479  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
481  返回:profile
调用者
名称描述
fqlookupn_profilesure stacks with components like* :ns:A//&B* have :ns: applied to both 'A' and 'B' by making the lookup relative* to the base if the lookup specifies an ns, else making the stacked lookup* relative to the last embedded ns in the string.