Hmm... You mean, it won't visible in that namespace? Afacis, it should
have the correct pid in the init ns, no?
I am a bit worried task_active_pid_ns() != nsproxy->pid_ns, but perhaps
this is OK... Say, sys_getpid() returns 0, strange.
This looks overcomplicated to me, or I missed something.
I do not understand why should we do this beforehand, and why we need
copy_namespaces_unattached().
Can't you just pass current to umh_pipe_setup() (or another helper) as
the argument? Then this helper can copy ->fs and ->nsproxy itself.
In fact, I do not understand why create_new_namespaces() is used. It
is called with flags == 0 anyway, can't we just do
ns = coredumping_task->nsproxy;
get_nsproxy(ns);
switch_task_namespaces(current, ns);
?
Oleg.
--