Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755842Ab1E2SYb (ORCPT ); Sun, 29 May 2011 14:24:31 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:51327 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755665Ab1E2SY3 (ORCPT ); Sun, 29 May 2011 14:24:29 -0400 Date: Sun, 29 May 2011 19:23:56 +0100 From: Al Viro To: Linus Torvalds Cc: "Aneesh Kumar K.V" , Kees Cook , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Will Drewry , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering Message-ID: <20110529182356.GJ11521@ZenIV.linux.org.uk> References: <1306254027.18455.47.camel@twins> <20110524195435.GC27634@elte.hu> <20110525150153.GE29179@elte.hu> <20110525180100.GY19633@outflux.net> <8762otqwke.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1362 Lines: 33 On Sun, May 29, 2011 at 10:02:06AM -0700, Linus Torvalds wrote: > And yes, it is absolutely acceptable. The only questions in my mind are > > - why haven't we done this long ago? > > - do we have the flag space? > > - should we do a O_NOMNT_PATH flag to do the same for mount-points? > > Some people worry about being confused by bind mounts etc. > > - do we think ".." is worthy of a flag too? > > or is that a "user space can damn well check that itself, even if > it would be absolutely trivial to check in the kernel too"? > > Whatever. I think the NOFOLLOW_PATH one is pretty much a no-brainer. > It's not like symlink worries are unusual. It's not *quite* a no-brainer. Guys, please hold that one off for a while; we have more massage to do in the area and I *really* want to get atomic open work finished (== intents gone, revalidation vs mountpoints sanitized, etc.) before anything else is done to fs/namie.c. OK? And as for .. - userland can bloody well check that on its own if it cares. Let's keep it simple, please - we already have things far too complicated in there for my taste. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/