Home
last modified time | relevance | path

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

/openbmc/linux/security/
H A Dcommoncap.c66 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 Dsmack_access.c657 rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE); in smack_privileged_cred()
/openbmc/linux/include/linux/
H A Dsecurity.h143 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 Dpolicy.c772 err = cap_capable(subj_cred, userns, cap, CAP_OPT_NONE); in policy_ns_capable()
/openbmc/linux/security/selinux/
H A Dhooks.c3162 if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts)) in has_cap_mac_admin()