Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754918AbaGHNNC (ORCPT ); Tue, 8 Jul 2014 09:13:02 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:52770 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754689AbaGHNM6 (ORCPT ); Tue, 8 Jul 2014 09:12:58 -0400 Date: Tue, 8 Jul 2014 06:12:55 -0700 From: Christoph Hellwig To: Meredydd Luff Cc: Christoph Hellwig , Andy Lutomirski , David Drysdale , Al Viro , LSM List , Greg Kroah-Hartman , James Morris , Kees Cook , Linux API , "linux-kernel@vger.kernel.org" , linux-man Subject: Re: [PATCH 01/11] fs: add O_BENEATH_ONLY flag to openat(2) Message-ID: <20140708131255.GA25362@infradead.org> References: <1404124096-21445-1-git-send-email-drysdale@google.com> <1404124096-21445-2-git-send-email-drysdale@google.com> <20140630154928.GB10375@google.com> <20140708120702.GB30459@infradead.org> <20140708125138.GA4749@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 08, 2014 at 02:04:45PM +0100, Meredydd Luff wrote: > On 8 July 2014 13:51, Christoph Hellwig wrote: > > Yeah, it won't work for an explicit directory - I was thinking of > > working relative to $CWD. > > I think that would sacrifice far too much flexibility. Even without > Capsicum, it would be worthwhile to be able to wire up a static > seccomp-bpf filter to enforce constraints such as "you can open files > under fd#5 for reading, but you can only write to files under fd#6, > and you can't do any global lookups." Yeah, I didn't intend to advocate this further after your reply. -- 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/