From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [patch 2/2] fs, proc: Introduce the /proc//map_files/ directory v12 Date: Thu, 15 Sep 2011 15:00:11 +0400 Message-ID: <20110915110010.GD27755@sun> References: <20110914111437.GA22516@atrey.karlin.mff.cuni.cz> <20110914113912.GQ25367@sun> <20110914134405.GV25367@sun> <20110914144841.GA7906@albatros> <20110914160018.GW25367@sun> <20110914160724.GA10612@albatros> <20110915091417.GA27755@sun> <20110915092757.GA23404@albatros> <20110915102922.GB27755@sun> <20110915105651.GA17575@albatros> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pavel Machek , Andrew Morton , linux-kernel@vger.kernel.org, containers@lists.osdl.org, linux-fsdevel@vger.kernel.org, Kirill Shutemov , Pavel Emelyanov , James Bottomley , Nathan Lynch , Zan Lynx , Daniel Lezcano , Tejun Heo , Alexey Dobriyan , Al Viro , Andrew Morton To: Vasiliy Kulikov Return-path: Content-Disposition: inline In-Reply-To: <20110915105651.GA17575@albatros> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Sep 15, 2011 at 02:56:51PM +0400, Vasiliy Kulikov wrote: ... > > > > > > How can you restore a set of processes in case they share an RW mapping > > > as RW in both tasks if you deny opening /proc/$pid/map_files/$address as W? > > > > I can read the link first to figure out the file path and re-open it as rw via > > path itself (which implies the restorer still must have enough rights to open > > it as rw). > > And what about RW mapping of unlinked files? > Need to figure some workaround Cyrill