Searched refs:cap_capable (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/security/ |
D | commoncap.c | 71 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/ |
D | security.h | 74 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/ |
D | smack_access.c | 643 rc = cap_capable(cred, &init_user_ns, cap, SECURITY_CAP_AUDIT); in smack_privileged_cred()
|
/Linux-v4.19/security/selinux/ |
D | hooks.c | 3245 if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, cap_audit)) in has_cap_mac_admin()
|