From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759696AbbA0Vfh (ORCPT ); Tue, 27 Jan 2015 16:35:37 -0500 Received: from mail-lb0-f171.google.com ([209.85.217.171]:52354 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbbA0Vff (ORCPT ); Tue, 27 Jan 2015 16:35:35 -0500 Date: Wed, 28 Jan 2015 00:35:32 +0300 From: Cyrill Gorcunov To: Kees Cook , Pavel Emelyanov Cc: Andrew Morton , "Kirill A. Shutemov" , Calvin Owens , Alexey Dobriyan , Oleg Nesterov , "Eric W. Biederman" , Al Viro , "Kirill A. Shutemov" , Peter Feiner , Grant Likely , Siddhesh Poyarekar , LKML , kernel-team@fb.com, Linux API Subject: Re: [RFC][PATCH v2] procfs: Always expose /proc//map_files/ and make it readable Message-ID: <20150127213532.GP651@moon> References: <20150114204653.GA26698@mail.thefacebook.com> <20150114211613.GH2253@moon> <20150122024554.GB23762@mail.thefacebook.com> <20150124031544.GA1992748@mail.thefacebook.com> <20150126124731.GA26916@node.dhcp.inet.fi> <20150126210054.GG651@moon> <20150126154346.c63c512e5821e9e0ea31f759@linux-foundation.org> <20150127073713.GJ651@moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 27, 2015 at 11:53:19AM -0800, Kees Cook wrote: > >> > >> Are mount namespaces handled in this output? > > > > Could you clarify this moment, i'm not sure i get it. > > I changed how I asked this question in my review of the documentation, > but it looks like these symlinks aren't "regular" symlinks (that are > up to the follower to have access to the file system path shown), but > rather they bypass VFS. As a result, I'm wondering how things like > mount namespaces might change this behavior: what is shown, the path > from the perspective of the target, or from the viewer (which may be > in separate mount namespaces). I must admit I personally didn't investigating how mount namespaces might itercat with map-files. Pavel, could you share the thoughts? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [RFC][PATCH v2] procfs: Always expose /proc//map_files/ and make it readable Date: Wed, 28 Jan 2015 00:35:32 +0300 Message-ID: <20150127213532.GP651@moon> References: <20150114204653.GA26698@mail.thefacebook.com> <20150114211613.GH2253@moon> <20150122024554.GB23762@mail.thefacebook.com> <20150124031544.GA1992748@mail.thefacebook.com> <20150126124731.GA26916@node.dhcp.inet.fi> <20150126210054.GG651@moon> <20150126154346.c63c512e5821e9e0ea31f759@linux-foundation.org> <20150127073713.GJ651@moon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kees Cook , Pavel Emelyanov Cc: Andrew Morton , "Kirill A. Shutemov" , Calvin Owens , Alexey Dobriyan , Oleg Nesterov , "Eric W. Biederman" , Al Viro , "Kirill A. Shutemov" , Peter Feiner , Grant Likely , Siddhesh Poyarekar , LKML , kernel-team-b10kYP2dOMg@public.gmane.org, Linux API List-Id: linux-api@vger.kernel.org On Tue, Jan 27, 2015 at 11:53:19AM -0800, Kees Cook wrote: > >> > >> Are mount namespaces handled in this output? > > > > Could you clarify this moment, i'm not sure i get it. > > I changed how I asked this question in my review of the documentation, > but it looks like these symlinks aren't "regular" symlinks (that are > up to the follower to have access to the file system path shown), but > rather they bypass VFS. As a result, I'm wondering how things like > mount namespaces might change this behavior: what is shown, the path > from the perspective of the target, or from the viewer (which may be > in separate mount namespaces). I must admit I personally didn't investigating how mount namespaces might itercat with map-files. Pavel, could you share the thoughts?