Searched refs:user_ns (Results 1 - 16 of 16) sorted by last modified time

/kernel/
H A Dacct.c494 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid);
495 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid);
H A Dcred.c55 .user_ns = &init_user_ns,
116 put_user_ns(cred->user_ns);
256 get_user_ns(new->user_ns);
377 const struct user_namespace *set_ns = set->user_ns;
378 const struct user_namespace *subset_ns = subset->user_ns;
608 get_user_ns(new->user_ns);
H A Dgroups.c69 struct user_namespace *user_ns = current_user_ns(); local
75 gid = from_kgid_munged(user_ns, GROUP_AT(group_info, i));
86 struct user_namespace *user_ns = current_user_ns(); local
96 kgid = make_kgid(user_ns, gid);
H A Dnsproxy.c60 struct task_struct *tsk, struct user_namespace *user_ns,
70 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs);
76 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns);
82 new_nsp->ipc_ns = copy_ipcs(flags, user_ns, tsk->nsproxy->ipc_ns);
89 copy_pid_ns(flags, user_ns, tsk->nsproxy->pid_ns_for_children);
95 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns);
127 struct user_namespace *user_ns = task_cred_xxx(tsk, user_ns); local
136 if (!ns_capable(user_ns, CAP_SYS_ADMIN))
150 new_ns = create_new_namespaces(flags, tsk, user_ns, ts
59 create_new_namespaces(unsigned long flags, struct task_struct *tsk, struct user_namespace *user_ns, struct fs_struct *new_fs) argument
179 struct user_namespace *user_ns; local
[all...]
H A Dpid.c81 .user_ns = &init_user_ns,
H A Dpid_namespace.c82 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, argument
115 ns->user_ns = get_user_ns(user_ns);
148 put_user_ns(ns->user_ns);
153 struct user_namespace *user_ns, struct pid_namespace *old_ns)
159 return create_pid_namespace(user_ns, old_ns);
258 if (write && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN))
339 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) ||
152 copy_pid_ns(unsigned long flags, struct user_namespace *user_ns, struct pid_namespace *old_ns) argument
H A Dptrace.c244 if (ptrace_has_cap(tcred->user_ns, mode))
255 !ptrace_has_cap(__task_cred(task)->user_ns, mode)) {
324 if (ns_capable(__task_cred(task)->user_ns, CAP_SYS_PTRACE))
H A Dreboot.c288 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT))
H A Dsignal.c754 if (ns_capable(tcred->user_ns, CAP_KILL))
1005 if (current_user_ns() == task_cred_xxx(t, user_ns))
1012 info->si_uid = from_kuid_munged(task_cred_xxx(t, user_ns),
1655 info.si_uid = from_kuid_munged(task_cred_xxx(tsk->parent, user_ns),
1741 info.si_uid = from_kuid_munged(task_cred_xxx(parent, user_ns), task_uid(tsk));
H A Dsys.c122 * or has CAP_SYS_NICE to p's user_ns.
133 if (ns_capable(pcred->user_ns, CAP_SYS_NICE))
206 uid = make_kuid(cred->user_ns, who);
274 uid = make_kuid(cred->user_ns, who);
344 ns_capable(old->user_ns, CAP_SETGID))
353 ns_capable(old->user_ns, CAP_SETGID))
394 if (ns_capable(old->user_ns, CAP_SETGID))
478 !ns_capable(old->user_ns, CAP_SETUID))
487 !ns_capable(old->user_ns, CAP_SETUID))
541 if (ns_capable(old->user_ns, CAP_SETUI
[all...]
H A Dtaskstats.c178 static void fill_stats(struct user_namespace *user_ns, argument
196 bacct_add_tsk(user_ns, pid_ns, stats, tsk);
H A Dtsacct.c29 void bacct_add_tsk(struct user_namespace *user_ns, argument
63 stats->ac_uid = from_kuid_munged(user_ns, tcred->uid);
64 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid);
H A Duid16.c66 ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid));
67 euid = high2lowuid(from_kuid_munged(cred->user_ns, cred->euid));
68 suid = high2lowuid(from_kuid_munged(cred->user_ns, cred->suid));
90 rgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->gid));
91 egid = high2lowgid(from_kgid_munged(cred->user_ns, cred->egid));
92 sgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->sgid));
114 struct user_namespace *user_ns = current_user_ns(); local
121 group = high2lowgid(from_kgid_munged(user_ns, kgid));
132 struct user_namespace *user_ns = current_user_ns(); local
141 kgid = make_kgid(user_ns, low2highgi
[all...]
H A Duser_namespace.c32 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) argument
47 cred->user_ns = user_ns;
60 struct user_namespace *ns, *parent_ns = new->user_ns;
96 /* Leave the new->user_ns reference with the new user namespace. */
846 struct user_namespace *user_ns; local
849 user_ns = get_user_ns(__task_cred(task)->user_ns);
852 return user_ns;
862 struct user_namespace *user_ns local
893 struct user_namespace *user_ns = ns; local
[all...]
H A Dutsname.c35 static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, argument
53 ns->user_ns = get_user_ns(user_ns);
65 struct user_namespace *user_ns, struct uts_namespace *old_ns)
75 new_ns = clone_uts_ns(user_ns, old_ns);
86 put_user_ns(ns->user_ns);
116 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) ||
64 copy_utsname(unsigned long flags, struct user_namespace *user_ns, struct uts_namespace *old_ns) argument
/kernel/sched/
H A Dcore.c4042 if (!ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) {

Completed in 129 milliseconds