Lines Matching defs:user_ns
77 if (ns == cred->user_ns)
84 if (ns->level <= cred->user_ns->level)
91 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid))
125 * If we are in the same or an ancestor user_ns and have all the target
127 * If we have the ptrace capability to the target user_ns, then ptrace
147 if (cred->user_ns == child_cred->user_ns &&
150 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE))
162 * If parent is in the same or an ancestor user_ns and has all current's
164 * If parent has the ptrace capability to current's user_ns, then ptrace
179 if (cred->user_ns == child_cred->user_ns &&
182 if (has_ns_capability(parent, child_cred->user_ns, CAP_SYS_PTRACE))
224 if (cap_capable(current_cred(), current_cred()->user_ns,
901 root_uid = make_kuid(new->user_ns, 0);
918 !ptracer_capable(current, new->user_ns))) {
920 if (!ns_capable(new->user_ns, CAP_SETUID) ||
992 struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
1006 if (!ns_capable(user_ns, CAP_SYS_ADMIN))
1033 struct user_namespace *user_ns = dentry->d_sb->s_user_ns;
1050 if (!ns_capable(user_ns, CAP_SYS_ADMIN))
1086 kuid_t root_uid = make_kuid(old->user_ns, 0);
1143 kuid_t root_uid = make_kuid(old->user_ns, 0);
1179 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE))
1305 current_cred()->user_ns,