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: Eric Blake
Subject: Re: [PATCH] root-uid: new module
Date: Tue, 26 Jun 2012 18:18:41 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

[adding cygwin]

On 06/26/2012 06:12 PM, Paul Eggert wrote:
> On 06/26/2012 05:01 PM, Eric Blake wrote:
>> Rather than forcing comparison to a single value, would it be better to
>> have a function is_privileged_uid(euid)?
> 
> Yes, that sounds better.  I don't use Cygwin, though, so
> I'm not qualified to write that.

Broadening the question, does the cygwin community have advice on the
best implementation of a function that returns true if the argument is a
uid with full privileges (for example, if the uid is a member of the
Administrator group, and can therefore read files in spite of chown()
disabling all the read permissions)?  We're trying to improve gnulib
(and therefore coreutils, findutils, tar, ...) to use an
implementation-appropriate check rather than the more traditional
hard-coded check of uid==0, since that doesn't quite work everywhere.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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