From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCHv10 man-pages 5/5] execveat.2: initial man page for execveat(2) Date: Fri, 9 Jan 2015 23:36:44 +0000 Message-ID: <20150109233644.GR22149@ZenIV.linux.org.uk> References: <20150109205626.GK22149@ZenIV.linux.org.uk> <20150109205926.GT4574@brightrain.aerifal.cx> <20150109210941.GL22149@ZenIV.linux.org.uk> <20150109212852.GU4574@brightrain.aerifal.cx> <20150109215042.GM22149@ZenIV.linux.org.uk> <20150109221728.GW4574@brightrain.aerifal.cx> <20150109223300.GO22149@ZenIV.linux.org.uk> <20150109224252.GY4574@brightrain.aerifal.cx> <20150109225743.GP22149@ZenIV.linux.org.uk> <20150109231248.GZ4574@brightrain.aerifal.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20150109231248.GZ4574@brightrain.aerifal.cx> Sender: linux-arch-owner@vger.kernel.org To: Rich Felker Cc: David Drysdale , "Michael Kerrisk (man-pages)" , "Eric W. Biederman" , Andy Lutomirski , Meredydd Luff , "linux-kernel@vger.kernel.org" , Andrew Morton , David Miller , Thomas Gleixner , Stephen Rothwell , Oleg Nesterov , Ingo Molnar , "H. Peter Anvin" , Kees Cook , Arnd Bergmann , Christoph Hellwig , X86 ML , linux-arch , Linux API , sparclinux@vger.kernel.org List-Id: linux-api@vger.kernel.org On Fri, Jan 09, 2015 at 06:12:48PM -0500, Rich Felker wrote: > I'm not sure where you're disagreeing with me. open of procfs symlinks > does not resolve the symlink and open the resulting pathname. They are > "magic symlinks" which are bound to the inode of the open file. I > don't see why this action, which is already special for magic > symlinks, can't check a flag on the magic symlink and possibly close > the corresponding file descriptor as part of its action. _What_ action? ->follow_link()? As in "the same thing that e.g. stat(2) would trigger"?