]> git.baikalelectronics.ru Git - kernel.git/commit
userns: Allow unprivileged reboot
authorLi Zefan <lizefan@huawei.com>
Thu, 27 Dec 2012 03:39:12 +0000 (11:39 +0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Dec 2012 04:29:30 +0000 (20:29 -0800)
commit2457a29379a816cf6bfaa0af8c3c2bf05b54184f
treed57765040dc118a83f2a7c8892b1d9f051d4c5ff
parent946617e949f096d175325c38902f1e6e1517f589
userns: Allow unprivileged reboot

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 <lizefan@huawei.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
kernel/sys.c