bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] root-uid: new module


From: Paul Eggert
Subject: Re: [PATCH] root-uid: new module
Date: Wed, 27 Jun 2012 07:13:23 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]