Searched refs:cap_capable (Results 1 – 4 of 4) sorted by relevance
| /OK3568_Linux_fs/kernel/security/ |
| H A D | commoncap.c | 65 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() function 223 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped() 1231 || (cap_capable(current_cred(), in cap_task_prctl() 1329 if (cap_capable(current_cred(), &init_user_ns, in cap_vm_enough_memory() 1350 ret = cap_capable(current_cred(), &init_user_ns, CAP_SYS_RAWIO, in cap_mmap_addr() 1368 LSM_HOOK_INIT(capable, cap_capable),
|
| /OK3568_Linux_fs/kernel/security/smack/ |
| H A D | smack_access.c | 657 rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE); in smack_privileged_cred()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | security.h | 137 extern int cap_capable(const struct cred *cred, struct user_namespace *ns, 556 return cap_capable(cred, ns, cap, opts); in security_capable()
|
| /OK3568_Linux_fs/kernel/security/selinux/ |
| H A D | hooks.c | 3176 if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts)) in has_cap_mac_admin()
|