From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [RFC] fs, proc: Introduce the /proc//map_files/ directory v2 Date: Thu, 25 Aug 2011 18:30:04 +0400 Message-ID: <20110825143004.GC3455@sun> References: <20110824085329.GL29452@sun> <4E551331.1010709@acm.org> <4E551693.5030400@parallels.com> <4E55EEE4.4050902@parallels.com> <20110825140434.GU25996@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pavel Emelyanov , Zan Lynx , Nathan Lynch , Oren Laadan , Daniel Lezcano , Tejun Heo , Andrew Morton , Glauber Costa , "containers@lists.osdl.org" , "linux-kernel@vger.kernel.org" , Serge Hallyn , LINUXFS-ML , James Bottomley To: Andi Kleen Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:57911 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725Ab1HYOaI (ORCPT ); Thu, 25 Aug 2011 10:30:08 -0400 Content-Disposition: inline In-Reply-To: <20110825140434.GU25996@one.firstfloor.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Aug 25, 2011 at 04:04:35PM +0200, Andi Kleen wrote: ... > > > > > > For example if I pass a file descriptor into a chroot process for > > > reading, and with this interface you can open it for writing too. > > > I could see this causing problems. > > > > How does it differ from the /proc/pid/fd links? > > Those cannot be opened I thought. > -Andi > We have ptrace_may_access in lookup so I don't think you'll be able to open it from another namespace or/and if you have not enough credentials to. Cyrill