Re: [PATCH] userns: Allow unprivileged reboot

2013-01-02 Thread Serge Hallyn
Quoting Li Zefan (lize...@huawei.com): > In a container with its own pid namespace and user namespace, rebooting > the system won't reboot the host, but terminate all the processes in > it and thus have the container shutdown, so it's safe. > > Signed-off-by: Li Zefan Thanks, Li. fwiw, Acked-by

Re: [PATCH] userns: Allow unprivileged reboot

2012-12-26 Thread Eric W. Biederman
Li Zefan writes: > In a container with its own pid namespace and user namespace, rebooting > the system won't reboot the host, but terminate all the processes in > it and thus have the container shutdown, so it's safe. > > Signed-off-by: Li Zefan Applied to my development tree. It will eventau

[PATCH] userns: Allow unprivileged reboot

2012-12-26 Thread Li Zefan
In a container with its own pid namespace and user namespace, rebooting the system won't reboot the host, but terminate all the processes in it and thus have the container shutdown, so it's safe. Signed-off-by: Li Zefan --- kernel/sys.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)