Lines Matching refs:user_ns
76 if (ns == cred->user_ns) in cap_capable()
83 if (ns->level <= cred->user_ns->level) in cap_capable()
90 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
146 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_access_check()
149 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_access_check()
178 if (cred->user_ns == child_cred->user_ns && in cap_ptrace_traceme()
181 if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_traceme()
223 if (cap_capable(current_cred(), current_cred()->user_ns, in cap_inh_is_capped()
824 root_uid = make_kuid(new->user_ns, 0); in cap_bprm_set_creds()
841 !ptracer_capable(current, new->user_ns))) { in cap_bprm_set_creds()
843 if (!ns_capable(new->user_ns, CAP_SETUID) || in cap_bprm_set_creds()
916 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr() local
930 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in cap_inode_setxattr()
948 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_removexattr() local
965 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in cap_inode_removexattr()
1001 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_emulate_setxuid()
1056 kuid_t root_uid = make_kuid(old->user_ns, 0); in cap_task_fix_setuid()
1092 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice()
1209 current_cred()->user_ns, in cap_task_prctl()