From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2843 Path: news.gmane.org!not-for-mail From: KOSAKI Motohiro Newsgroups: gmane.comp.lib.glibc.alpha,gmane.linux.lib.musl.general Subject: Re: O_EXEC and O_SEARCH Date: Sat, 23 Feb 2013 00:28:00 -0500 Message-ID: References: <20130222004540.GA8836@brightrain.aerifal.cx> <20130223050323.GW20323@brightrain.aerifal.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1361597310 11893 80.91.229.3 (23 Feb 2013 05:28:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2013 05:28:30 +0000 (UTC) Cc: libc-alpha , musl@lists.openwall.com To: Rich Felker Original-X-From: libc-alpha-return-37224-glibc-alpha=m.gmane.org@sourceware.org Sat Feb 23 06:28:53 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 1U97fI-0001Jl-2B for glibc-alpha@plane.gmane.org; Sat, 23 Feb 2013 06:28:52 +0100 Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1362202112; h=Comment: DomainKey-Signature:Received:Received:MIME-Version:In-Reply-To: References:From:Date:Message-ID:Subject:To:Cc:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=PdR7Pxh kqXUD+6nOxsBBEnjPKMc=; b=OwveLVRir2z4E9+jtpsgFbKzr1FR4HFkb5NJleM j2KP3SQATl/lniJHcFE0hDPz7stwgwjqeyAXpjurteJY7OC21I9gnzjU/0VRSgRf BQwHuEJX1jpHhEfjA10tjhJv18NRmefCKEprxKEe9EAHUk3pBh3Ku3F1qQ7q0m/F ydOM= 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:X-Received:MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=InSlV/M2acUijxDdMHCNUq7h7XeXix1si8EAAQHDtsO3VmWUpsf1Q82jb12sKW oGZA1G4iE66/xKHa3DUbIPc9VPJqB6wXcu5m8PpJa4doq+yE1dTcpupKdffyao/l TJ8Fi2a7eZJVnjXm+/YD4eEDCu/cSCX3YnOi/Hz1mO7Xo=; Original-Received: (qmail 9538 invoked by alias); 23 Feb 2013 05:28:29 -0000 Original-Received: (qmail 9528 invoked by uid 22791); 23 Feb 2013 05:28:28 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Received: by 10.60.26.231 with SMTP id o7mr1755534oeg.107.1361597301774; Fri, 22 Feb 2013 21:28:21 -0800 (PST) In-Reply-To: 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:29560 gmane.linux.lib.musl.general:2843 Archived-At: >>> And, as far as I observed, current linux man pages don't tell us >>> O_PATH|O_NOFOLLOW >>> behavior. Is this really intentional result? How do you confirmed? >> >> Yes, it seems intentional. O_PATH without O_NOFOLLOW would resolve the >> symbolic link and open a file descriptor referring to the target >> inode. O_PATH|O_NOFOLLOW opens a file descriptor to the symbolic link >> inode itself. As far as I can see, this behavior is desirable and >> intentional with O_PATH but wrong for O_SEARCH or O_EXEC. > > Hmm... Why? > It doesn't match linux man nor posix. So, I suggest to don't guess and discuss in LKML directly instead.