Lines Matching defs:user_ns
76 if (ns == cred->user_ns)
83 if (ns->level <= cred->user_ns->level)
90 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid))
124 * If we are in the same or an ancestor user_ns and have all the target
126 * If we have the ptrace capability to the target user_ns, then ptrace
146 if (cred->user_ns == child_cred->user_ns &&
149 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE))
161 * If parent is in the same or an ancestor user_ns and has all current's
163 * If parent has the ptrace capability to current's user_ns, then ptrace
178 if (cred->user_ns == child_cred->user_ns &&
181 if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE))
223 if (cap_capable(current_cred(), current_cred()->user_ns,
846 root_uid = make_kuid(new->user_ns, 0);
863 !ptracer_capable(current, new->user_ns))) {
865 if (!ns_capable(new->user_ns, CAP_SETUID) ||
937 struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
951 if (!ns_capable(user_ns, CAP_SYS_ADMIN))
969 struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
986 if (!ns_capable(user_ns, CAP_SYS_ADMIN))
1022 kuid_t root_uid = make_kuid(old->user_ns, 0);
1077 kuid_t root_uid = make_kuid(old->user_ns, 0);
1113 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE))
1230 current_cred()->user_ns,