From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030343AbWGMUDs (ORCPT ); Thu, 13 Jul 2006 16:03:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030344AbWGMUDs (ORCPT ); Thu, 13 Jul 2006 16:03:48 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:25535 "EHLO e3.ny.us.ibm.com") by vger.kernel.org with ESMTP id S1030343AbWGMUDs (ORCPT ); Thu, 13 Jul 2006 16:03:48 -0400 Subject: Re: [PATCH -mm 5/7] add user namespace From: Dave Hansen To: "Eric W. Biederman" Cc: "Serge E. Hallyn" , Cedric Le Goater , linux-kernel@vger.kernel.org, Andrew Morton , Kirill Korotaev , Andrey Savochkin , Herbert Poetzl , Sam Vilain In-Reply-To: References: <20060711075051.382004000@localhost.localdomain> <20060711075420.937831000@localhost.localdomain> <44B50088.1010103@fr.ibm.com> <44B684A5.2040008@fr.ibm.com> <20060713174721.GA21399@sergelap.austin.ibm.com> <1152815391.7650.58.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 13 Jul 2006 13:03:31 -0700 Message-Id: <1152821011.24925.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2006-07-13 at 13:02 -0600, Eric W. Biederman wrote: > All comparisons of a user equality need to be of the tuple (user namespace, user id). > Any comparison that does not do that is an optimization. ... > So my impression was that Cedric's patchset was overoptimized because > it did not change most of the uid comparisons, to (user namespace, user id). I might just be tempted to call them bugs so people understand what I'm talking about ;) > Because you can have access to files created in another user namespace it > is very unlikely that optimization will apply very frequently. The easy scenario > to get access to a file descriptor from another context is to consider unix > domain sockets. OK, so you're saying that the lack of checks will cause problems rarely, and that passing a fd across a unix domain sockets is one of the times when you _could_ encounter this problem? -- Dave