Re: Remaining work for userns

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Friday, July 30, 2010 - 5:23 pm

"Serge E. Hallyn" <serge@hallyn.com> writes:


As I recall signal delivery in the kernel lands the signal in the
queue of the destination process before the syscall returns.  If that
is true we should be able to handle signal delivery by just doing
whatever conversions are needed during delivery.

aka the userns should just be task->nsproxy->user_ns for
task->signal->queue.  We cannot unshare the user namespace so there
are no nasty races.

I am reminded that I may want to play with the user namespace and
unshare when I get setns refresh and reviewed for inclusion.  Still
none of that should affect the fact that a task should never be
able to change user namespaces.


We now have user_ns_map_uid and user_ns_map_gid in next-next.git
Serge I'm not certain how that interacts with your other work, but
it is definitely something we want to build on.

Eric

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] cgroup : add clone_children control file, Serge E. Hallyn, (Thu Jul 29, 12:56 pm)
[PATCH 3/3] cgroup : remove the ns_cgroup, Serge E. Hallyn, (Thu Jul 29, 12:58 pm)
Re: [PATCH 3/3] cgroup : remove the ns_cgroup, Matt Helsley, (Thu Jul 29, 2:40 pm)
Re: [PATCH 3/3] cgroup : remove the ns_cgroup, Paul Menage, (Thu Jul 29, 2:46 pm)
Re: [PATCH 3/3] cgroup : remove the ns_cgroup, Serge E. Hallyn, (Thu Jul 29, 3:39 pm)
Re: Remaining work for userns, Eric W. Biederman, (Fri Jul 30, 5:23 pm)
Re: [PATCH 3/3] cgroup : remove the ns_cgroup, Li Zefan, (Tue Aug 3, 1:31 am)