From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25755 invoked by alias); 27 Jun 2012 14:13:38 -0000 Received: (qmail 25742 invoked by uid 22791); 27 Jun 2012 14:13:36 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.cs.ucla.edu (HELO smtp.cs.ucla.edu) (131.179.128.62) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jun 2012 14:13:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 67C8CA6000F; Wed, 27 Jun 2012 07:13:23 -0700 (PDT) Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9RX0SNndx4JI; Wed, 27 Jun 2012 07:13:23 -0700 (PDT) Received: from [192.168.1.10] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 08D69A60007; Wed, 27 Jun 2012 07:13:23 -0700 (PDT) Message-ID: <4FEB1503.8000809@cs.ucla.edu> Date: Wed, 27 Jun 2012 14:13:00 -0000 From: Paul Eggert User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com, bug-gnulib Subject: Re: [PATCH] root-uid: new module References: <4FEA4A72.8090003@cs.ucla.edu> <4FEA4D53.3090409@redhat.com> <4FEA4FDB.5030105@cs.ucla.edu> <4FEA5161.6010503@redhat.com> <20120627074814.GC837@calimero.vinschen.de> In-Reply-To: <20120627074814.GC837@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00513.txt.bz2 On 06/27/2012 12:48 AM, Corinna Vinschen wrote: > I guess, the most platform-independent approach would be to encapsulate > the whole problem into a function requesting a specific capability along > the lines of the POSIX 1.e definitions, Some Gnulib code (e.g., unlinkdir.c) relies on the Solaris-defined primitives in for that, e.g., priv_set_ismember (PRIV_SYS_LINKDIR) to test whether the current process can unlink directories (traditionally this required root privileges). Presumably this sort of thing could be extended and ported to POSIX 1.e, if someone wanted to do that. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple