From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH] kernel: allow reboots from user_ns Date: Thu, 14 Feb 2013 18:30:52 +0400 Message-ID: <511CF51C.6050504@parallels.com> References: <1360843000-31228-1-git-send-email-glommer@parallels.com> <20130214142745.GA4470@sergelap> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130214142745.GA4470@sergelap> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Serge Hallyn Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton , "Eric W. Biederman" List-Id: containers.vger.kernel.org On 02/14/2013 06:27 PM, Serge Hallyn wrote: > Quoting Glauber Costa (glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org): >> Reboot support for pid namespaces is already implemented and it works >> well. However, in most containers the tasks will join all namespaces, >> including the now supported user namespace. In that situation, we will >> fail the "capable" test and won't be able to reboot. >> >> The proposed solution is to allow reboots for CAP_SYS_BOOT processes >> in the user namespace that owns the pid namespace. >> >> Signed-off-by: Glauber Costa > > Note Li Zefan sent this identical patch last year. It's in my own > built userns kernel, and definately required :) > I didn't see that, and using Linus' master my stop container scripts stopped working after I started using Eric's userns...