cap_capable
extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
return cap_capable(cred, ns, cap, opts);
TRACE_EVENT(cap_capable,
cap_capable(current_cred(), &init_user_ns, CAP_MAC_OVERRIDE,
err = cap_capable(subj_cred, userns, cap, CAP_OPT_NONE);
if (cap_capable(current_cred(), current_cred()->user_ns,
return cap_capable(current_cred(), &init_user_ns, CAP_SYS_ADMIN,
ret = cap_capable(current_cred(), &init_user_ns, CAP_SYS_RAWIO,
LSM_HOOK_INIT(capable, cap_capable),
if (cap_capable(current_cred(), current_cred()->user_ns,
if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts))
rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE);