X-Recipient: archive-cygwin AT delorie DOT com 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 Message-ID: <4FEB1503.8000809@cs.ucla.edu> Date: Wed, 27 Jun 2012 07:13:23 -0700 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 AT cygwin DOT com, bug-gnulib Subject: Re: [PATCH] root-uid: new module References: <4FEA4A72 DOT 8090003 AT cs DOT ucla DOT edu> <4FEA4D53 DOT 3090409 AT redhat DOT com> <4FEA4FDB DOT 5030105 AT cs DOT ucla DOT edu> <4FEA5161 DOT 6010503 AT redhat DOT com> <20120627074814 DOT GC837 AT calimero DOT vinschen DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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