Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754997AbaGHNFO (ORCPT ); Tue, 8 Jul 2014 09:05:14 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:43535 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754600AbaGHNFH (ORCPT ); Tue, 8 Jul 2014 09:05:07 -0400 MIME-Version: 1.0 In-Reply-To: <20140708125138.GA4749@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> From: Meredydd Luff Date: Tue, 8 Jul 2014 14:04:45 +0100 Message-ID: Subject: Re: [PATCH 01/11] fs: add O_BENEATH_ONLY flag to openat(2) To: Christoph Hellwig Cc: Andy Lutomirski , David Drysdale , Al Viro , LSM List , Greg Kroah-Hartman , James Morris , Kees Cook , Linux API , "linux-kernel@vger.kernel.org" , linux-man Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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." Meredydd -- 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/