From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id B64CF323 for ; Thu, 21 Jul 2016 17:16:36 +0000 (UTC) Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id EB4B424A for ; Thu, 21 Jul 2016 17:16:35 +0000 (UTC) From: ebiederm@xmission.com (Eric W. Biederman) To: Herbert Xu References: <20160711173329.GA8240@pc.thejh.net> <87y44xr5zp.fsf@x220.int.ebiederm.org> <8737n5caz8.fsf@x220.int.ebiederm.org> <20160720064228.GA32737@gondor.apana.org.au> Date: Thu, 21 Jul 2016 12:03:31 -0500 In-Reply-To: <20160720064228.GA32737@gondor.apana.org.au> (Herbert Xu's message of "Wed, 20 Jul 2016 14:42:28 +0800") Message-ID: <87poq653fg.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain Cc: Jann Horn , "ksummit-discuss@lists.linuxfoundation.org" Subject: Re: [Ksummit-discuss] [TOPIC] kernel hardening / self-protection / whatever List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Herbert Xu writes: > On Tue, Jul 19, 2016 at 09:14:03PM -0500, Eric W. Biederman wrote: >> True. I tried to review things to make certain they were safe in user >> namespaces when I enabled things but clearly a few things slipped >> through the cracks. > > What's worse is that after you enable them someone else can come > along and add a new piece of functionality but still assuming > that only root has access to it. I encountered this with netfilter > and rhashtable where the argument put forward was that as long as > only root had access to a hash table then we don't have to worry > about hash collissions. Wow. I missed that hash table discussion. Yes. People working on old assumptions is problematic. Although I have seen people in code reviews ask the question and what happens if someone enables your code with user namespaces? Which seems like a good sign. Hopefully we can just retire the argument only root can do this, we don't need to care about code quality. Eric