[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110825143004.GC3455@sun>
Date: Thu, 25 Aug 2011 18:30:04 +0400
From: Cyrill Gorcunov <gorcunov@...il.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: Pavel Emelyanov <xemul@...allels.com>, Zan Lynx <zlynx@....org>,
Nathan Lynch <ntl@...ox.com>,
Oren Laadan <orenl@...columbia.edu>,
Daniel Lezcano <dlezcano@...ibm.com>,
Tejun Heo <tj@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Glauber Costa <glommer@...allels.com>,
"containers@...ts.osdl.org" <containers@...ts.osdl.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Serge Hallyn <serge.hallyn@...onical.com>,
LINUXFS-ML <linux-fsdevel@...r.kernel.org>,
James Bottomley <jbottomley@...allels.com>
Subject: Re: [RFC] fs, proc: Introduce the /proc/<pid>/map_files/ directory v2
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists