函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__lookup_replace - lookup replacement information for a profile*@ns - namespace the lookup occurs in*@hname - name of profile to lookup*@noreplace - true if not replacing an existing profile*@p - Returns: profile to be replaced*@info - Returns: info

函数原型:static int __lookup_replace(struct aa_ns *ns, const char *hname, bool noreplace, struct aa_profile **p, const char **info)

返回类型:int

参数:

类型参数名称
struct aa_ns *ns
const char *hname
boolnoreplace
struct aa_profile **p
const char **info
800  p等于aa_get_profile - increment refcount on profile @p*@p: profile (MAYBE NULL)* Returns: pointer to @p if @p is NULL will return NULL* Requires: @p must be held with valid refcount when called
801  如果p
802  error等于placement_allowed - test to see if replacement is allowed*@profile: profile to test if it can be replaced (MAYBE NULL)*@noreplace: true if replacement shouldn't be allowed but addition is okay*@info: Returns - info about why replacement failed (NOT NULL)*
803  如果error
804  info等于"profile can not be replaced"
805  返回:error
809  返回:0
调用者
名称描述
aa_replace_profilesaa_replace_profiles - replace profile(s) on the profile list*@policy_ns: namespace load is occurring on*@label: label that is attempting to load/replace policy*@mask: permission mask*@udata: serialized data stream (NOT NULL)* unpack and replace a profile