Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934133AbaKMUNi (ORCPT ); Thu, 13 Nov 2014 15:13:38 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39134 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933468AbaKMUNg (ORCPT ); Thu, 13 Nov 2014 15:13:36 -0500 Date: Thu, 13 Nov 2014 12:13:34 -0800 From: Andrew Morton To: David Drysdale Cc: Christoph Hellwig , Rich Felker , "Eric W. Biederman" , Andy Lutomirski , Alexander Viro , Meredydd Luff , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Kees Cook , Arnd Bergmann , X86 ML , linux-arch , Linux API Subject: Re: [PATCHv7 0/3] syscalls,x86: Add execveat() system call Message-Id: <20141113121334.a0b73e9635f7f2f60a9e6566@linux-foundation.org> In-Reply-To: References: <1415379664-31555-1-git-send-email-drysdale@google.com> <20141112135009.5a887d200be262d94ba50495@linux-foundation.org> X-Mailer: Sylpheed 3.4.0beta7 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Nov 2014 14:42:58 +0000 David Drysdale wrote: > On Wed, Nov 12, 2014 at 9:50 PM, Andrew Morton > wrote: > > On Fri, 7 Nov 2014 17:01:01 +0000 David Drysdale wrote: > > > >> This patch set adds execveat(2) for x86, and is derived from Meredydd > >> Luff's patch from Sept 2012 (https://lkml.org/lkml/2012/9/11/528). > >> > >> The primary aim of adding an execveat syscall is to allow an > >> implementation of fexecve(3) that does not rely on the /proc > >> filesystem, at least for executables (rather than scripts). The > >> current glibc version of fexecve(3) is implemented via /proc, which > >> causes problems in sandboxed or otherwise restricted environments. > > > > Have the relevant glibc people seen/reviewed/liked this? > > I think it's been mentioned in passing but not explicitly discussed over there > (https://sourceware.org/ml/libc-alpha/2014-10/msg00497.html, > https://sourceware.org/ml/libc-alpha/2014-10/msg00509.html) > and a couple of the participants in that thread (Christoph Hellwig, Rich Felker) > were also cc:ed here. > > It sounded like execveat might be useful for another feature (O_EXEC) but > I'm not sure whether that amounts to the relevant glibc folk liking this... OK. Could you please try to hunt down the appropriate people and give them a poke? We'd be in a mess if we merged this then glibc didn't use it, or glibc developers required/suggested any interface modifications. -- 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/