This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [PATCH] root-uid: new module
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: cygwin at cygwin dot com, bug-gnulib <bug-gnulib at gnu dot org>
- Date: Wed, 27 Jun 2012 07:13:23 -0700
- 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>
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