Searched refs:cap_capable (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/security/ |
H A D | commoncap.c | 66 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() function 224 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped() 1304 || (cap_capable(current_cred(), in cap_task_prctl() 1404 if (cap_capable(current_cred(), &init_user_ns, in cap_vm_enough_memory() 1426 ret = cap_capable(current_cred(), &init_user_ns, CAP_SYS_RAWIO, in cap_mmap_addr() 1444 LSM_HOOK_INIT(capable, cap_capable),
|
/openbmc/linux/security/smack/ |
H A D | smack_access.c | 657 rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE); in smack_privileged_cred()
|
/openbmc/linux/include/linux/ |
H A D | security.h | 143 extern int cap_capable(const struct cred *cred, struct user_namespace *ns, 582 return cap_capable(cred, ns, cap, opts); in security_capable()
|
/openbmc/linux/security/apparmor/ |
H A D | policy.c | 772 err = cap_capable(subj_cred, userns, cap, CAP_OPT_NONE); in policy_ns_capable()
|
/openbmc/linux/security/selinux/ |
H A D | hooks.c | 3162 if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts)) in has_cap_mac_admin()
|