lkml.org 
[lkml]   [2014]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND v3 PATCH 3/3] vfs: make mounts and mountstats honor root dir like mountinfo does
On Mon, Sep 29, 2014 at 07:32:22PM +0100, Al Viro wrote:
> On Mon, Sep 29, 2014 at 10:05:23PM +0400, Dmitry V. Levin wrote:
> > Date: Wed, 17 Oct 2012 20:29:55 +0400
> >
> > Change show_vfsmnt() and show_vfsstat() to show mountpoints relative
> > to the root directory and skip mountpoints outside of chroot jail
> > the same way as show_mountinfo() does.
>
> Sigh... Repeat after me: We Do Not Break Userland. Care to explain
> why that change won't do just that?

This is definitely an information leak, and I cannot imagine how these
unaccessible entries listed in /proc/self/mounts and /proc/self/mountstats
could be used sanely.


--
ldv


\
 
 \ /
  Last update: 2014-09-29 21:21    [W:0.132 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site