Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-28 19:53:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:apparmor_capable

Proto:static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)

Type:int

Parameter:

TypeParameterName
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  If Not unconfined(label) Then 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  Return error