From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbaGHMvo (ORCPT ); Tue, 8 Jul 2014 08:51:44 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:55157 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754441AbaGHMvm (ORCPT ); Tue, 8 Jul 2014 08:51:42 -0400 Date: Tue, 8 Jul 2014 05:51:38 -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@vger.kernel.org Subject: Re: [PATCH 01/11] fs: add O_BENEATH_ONLY flag to openat(2) Message-ID: <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> 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 01:48:27PM +0100, Meredydd Luff wrote: > How would that work? The directory beneath which openat is looking is > conveyed in the dfd argument itself. If I'm understanding this right, > you'd have to pass a different value for "open relative to fd#5" and > "open relative to fd#5, but beneath it only", which doesn't sound > hugely elegant to me. Yeah, it won't work for an explicit directory - I was thinking of working relative to $CWD. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 01/11] fs: add O_BENEATH_ONLY flag to openat(2) Date: Tue, 8 Jul 2014 05:51:38 -0700 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org On Tue, Jul 08, 2014 at 01:48:27PM +0100, Meredydd Luff wrote: > How would that work? The directory beneath which openat is looking is > conveyed in the dfd argument itself. If I'm understanding this right, > you'd have to pass a different value for "open relative to fd#5" and > "open relative to fd#5, but beneath it only", which doesn't sound > hugely elegant to me. Yeah, it won't work for an explicit directory - I was thinking of working relative to $CWD.