[PATCH 14/15] Destroy pid namespace on init's death
oleg at tv-sign.ru
Thu Aug 2 11:49:53 PDT 2007
On 08/02, sukadev at us.ibm.com wrote:
> Oleg Nesterov [oleg at tv-sign.ru] wrote:
> | This means that we should take care about multi-thread init exit,
> | otherwise the non-root user can crash the kernel.
> | >From reply to Kirill's message:
> | > Still. A non-root user does clone(CLONE_PIDNS), then clone(CLONE_THREAD),
> Agree we should fix the crash. But we need CAP_SYS_ADMIN to clone
> pid or other namespaces - this is enforced in copy_namespaces() and
Hmm. sys_unshare(CLONE_PIDNS) doesn't (and shouldn't) work anyway, but
I don't see the CAP_SYS_ADMIN check in copy_process()->copy_namespaces()
Perhaps I just missed it (sorry, I already cleared my mbox, so I can't
look at theses patches), but is it a good idea to require CAP_SYS_ADMIN?
I think it would be nice if a normal user can create containers, no?
More information about the Containers