Lines Matching refs:current_cred
146 cred = current_cred(); in cap_ptrace_access_check()
183 child_cred = current_cred(); in cap_ptrace_traceme()
230 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped()
724 const struct cred *old = current_cred(); in handle_privileged_root()
817 const struct cred *old = current_cred(); in cap_bprm_set_creds()
1097 current_cred()->cap_permitted); in cap_safe_nice()
1178 const struct cred *old = current_cred(); in cap_task_prctl()
1214 || (cap_capable(current_cred(), in cap_task_prctl()
1215 current_cred()->user_ns, CAP_SETPCAP, in cap_task_prctl()
1271 return !!cap_raised(current_cred()->cap_ambient, arg3); in cap_task_prctl()
1277 (!cap_raised(current_cred()->cap_permitted, arg3) || in cap_task_prctl()
1278 !cap_raised(current_cred()->cap_inheritable, 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()