From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2834 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.comp.lib.glibc.alpha,gmane.linux.lib.musl.general Subject: Re: O_EXEC and O_SEARCH Date: Fri, 22 Feb 2013 22:17:09 -0500 Message-ID: <20130223031708.GU20323@brightrain.aerifal.cx> References: <20130222004540.GA8836@brightrain.aerifal.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1361589450 12782 80.91.229.3 (23 Feb 2013 03:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2013 03:17:30 +0000 (UTC) Cc: libc-alpha , musl@lists.openwall.com To: KOSAKI Motohiro Original-X-From: libc-alpha-return-37215-glibc-alpha=m.gmane.org@sourceware.org Sat Feb 23 04:17:52 2013 Return-path: Envelope-to: glibc-alpha@plane.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1U95cV-0003kQ-7Z for glibc-alpha@plane.gmane.org; Sat, 23 Feb 2013 04:17:51 +0100 Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1362194251; h=Comment: DomainKey-Signature:Received:Received:Date:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent:From:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=IO3fvHojPHZ9udW0ZGNh HfCPVUM=; b=hKdVGKH3L2KsdBDuOk2GRmM8/VYlzd+qHvwnGHmztMcP5HW8TXVd WlcHmkV8Wm/Op/Du97i9swtBNqsBh4mksHyhUnjQk/KbW2nzHFnB0GrQ9Sd7giM8 /EXEC9cQpa39r47R/bMq0zUozH25WGKtMHvrJjegqhr0XA8IpNgTChY= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Date:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:From:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=iksf5bYNhLcG0tH7KcvWcs30ZuHLAJDyvU3VjwFEEx8ik85A2u+oYA5Pp+DaV8 IxQlM510Cpdl54CV6cKLqtLDYp5msZoMZ2RFr0Thml0JsGNCnhrD947RKNZ+mLlZ bO21hMPfzAzy+wiEOjE7hYQMPWtvzB6pChG3H9dEpLu0k=; Original-Received: (qmail 15064 invoked by alias); 23 Feb 2013 03:17:27 -0000 Original-Received: (qmail 15041 invoked by uid 22791); 23 Feb 2013 03:17:25 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,KHOP_DYNAMIC2,RDNS_DYNAMIC,TVD_RCVD_IP X-Spam-Check-By: sourceware.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libc-alpha-owner@sourceware.org Xref: news.gmane.org gmane.comp.lib.glibc.alpha:29551 gmane.linux.lib.musl.general:2834 Archived-At: On Fri, Feb 22, 2013 at 10:05:03PM -0500, KOSAKI Motohiro wrote: > > I'd like to have a conversation with the glibc team about O_EXEC and > > O_SEARCH in the interest of hopefully developing a unified plan for > > supporting them on Linux. Presumably the reason glibc still does not > > have them is that Linux O_PATH does not exactly match their semantics > > in some cases, and O_PATH is sufficiently broken on many kernel > > versions to make offering it problematic. In particular, current > > coreutils break badly on most kernel versions around 2.6.39-3.6 or so > > if O_SEARCH and O_EXEC are defined as O_PATH. > > I'm curious why don't you implement them in kernel directly? See this thread for Linus's opinion on why O_SEARCH was not added: http://comments.gmane.org/gmane.linux.file-systems/33611 O_NODE seems to have been renamed to O_PATH, or perhaps O_PATH was a later independent implementation of the same idea; it's not clear to me which happened. But the idea is that the kernel folks did not want to do O_SEARCH and O_EXEC properly in kernelspace but instead wanted to provide a more general flag that could be used to implement both O_SEARCH and O_EXEC. Rich