Searched refs:cap_capable (Results 1 - 6 of 6) sorted by relevance

/linux-master/security/
H A Dcommoncap.c53 * cap_capable - Determine whether a task has a particular effective capability
67 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, function
225 if (cap_capable(current_cred(), current_cred()->user_ns,
1305 || (cap_capable(current_cred(),
1405 if (cap_capable(current_cred(), &init_user_ns,
1427 ret = cap_capable(current_cred(), &init_user_ns, CAP_SYS_RAWIO,
1450 LSM_HOOK_INIT(capable, cap_capable),
/linux-master/security/smack/
H A Dsmack_access.c657 rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE);
/linux-master/include/linux/
H A Dsecurity.h148 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
610 return cap_capable(cred, ns, cap, opts);
/linux-master/security/apparmor/
H A Dpolicy.c796 err = cap_capable(subj_cred, userns, cap, CAP_OPT_NONE);
H A Ddomain.c1382 cap_capable(current_cred(), &init_user_ns, CAP_MAC_OVERRIDE,
/linux-master/security/selinux/
H A Dhooks.c3177 if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts))

Completed in 155 milliseconds