From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: Thoughts on tightening up user namespace creation Date: Tue, 8 Mar 2016 16:41:16 -0600 Message-ID: <20160308224116.GA17693@mail.hallyn.com> References: <20160308060657.GA3565@mail.hallyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: 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: Andy Lutomirski Cc: Kees Cook , Colin Walters , Linux Containers , Serge Hallyn , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Seth Forshee , "Eric W. Biederman" , Stephane Graber List-Id: containers.vger.kernel.org Quoting Andy Lutomirski (luto-kltTT9wpgjJwATOyAt5JVQ@public.gmane.org): > On Mar 7, 2016 10:06 PM, "Serge E. Hallyn" wrote: > > > > On Mon, Mar 07, 2016 at 09:15:25PM -0800, Andy Lutomirski wrote: > > > - Ubuntu requires CAP_SYS_ADMIN > > > > No, it does not. It has temporarily re-added a sysctl which can enable > > that behavior, but it's not set by default. The reason for providing it > > is not a distrust of user namespaces in general, but because we're enabling > > some bleeding edge patches which haven't been accepted upstream yet. Once > > they're accepted upstream I expect that patch to be dropped again, unless > > it has gone upstream. > > > > Debian does afaik still have a version of a patch I'd originally written > > before user namespaces were upstream which defaulted unprivileged userns > > cloning to off. Did you mean Debian here? > > I meant Ubuntu 14.04, which I tested, possibly poorly. Weird, 14.04 with the default kernel (3.13.0-79-generic #123-Ubuntu) doesn't have the sysctl at all. -serge