函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apparmor_capable

函数原型:static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)

返回类型:int

参数:

类型参数名称
const struct cred *cred
struct user_namespace *ns
intcap
unsigned intopts
184  error等于0
186  label等于aa_get_newest_cred_label - obtain the newest label on a cred*@cred: cred to obtain label from (NOT NULL)* Returns: newest version of confining label
187  如果非unconfined(label)则error等于aa_capable - test permission to use capability*@label: label being tested for capability (NOT NULL)*@cap: capability to be tested*@opts: CAP_OPT_NOAUDIT bit determines whether audit record is generated* Look up capability in profile capability set.
189  aa_put_label(label)
191  返回:error