函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int replacement_allowed(struct aa_profile *profile, int noreplace, const char **info)

返回类型:int

参数:

类型参数名称
struct aa_profile *profile
intnoreplace
const char **info
583  如果profile
584  如果flags按位与 don't allow changes/replacement
585  info等于"cannot replace immutable profile"
586  返回:负EPERM
587  否则如果noreplace
588  info等于"profile already exists"
589  返回:负EEXIST
592  返回:0
调用者
名称描述
__lookup_replace__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