delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/27/10:13:50

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 <eggert AT cs DOT ucla DOT edu>
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 <bug-gnulib AT gnu DOT org>
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>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <priv.h> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019