Home
last modified time | relevance | path

Searched refs:cap_capable (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/security/
Dcommoncap.c71 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() function
230 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped()
1214 || (cap_capable(current_cred(), in cap_task_prctl()
1311 if (cap_capable(current_cred(), &init_user_ns, CAP_SYS_ADMIN, in cap_vm_enough_memory()
1331 ret = cap_capable(current_cred(), &init_user_ns, CAP_SYS_RAWIO, in cap_mmap_addr()
1349 LSM_HOOK_INIT(capable, cap_capable),
/Linux-v4.19/include/linux/
Dsecurity.h74 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
497 return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT); in security_capable()
502 return cap_capable(cred, ns, cap, SECURITY_CAP_NOAUDIT); in security_capable_noaudit()
/Linux-v4.19/security/smack/
Dsmack_access.c643 rc = cap_capable(cred, &init_user_ns, cap, SECURITY_CAP_AUDIT); in smack_privileged_cred()
/Linux-v4.19/security/selinux/
Dhooks.c3245 if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, cap_audit)) in has_cap_mac_admin()