From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6109 invoked by alias); 27 Jun 2012 00:19:04 -0000 Received: (qmail 6100 invoked by uid 22791); 27 Jun 2012 00:19:03 -0000 X-SWARE-Spam-Status: No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Jun 2012 00:18:44 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5R0IgcG004528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Jun 2012 20:18:43 -0400 Received: from [10.3.113.134] (ovpn-113-134.phx2.redhat.com [10.3.113.134]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q5R0Igdl016896; Tue, 26 Jun 2012 20:18:42 -0400 Message-ID: <4FEA5161.6010503@redhat.com> Date: Wed, 27 Jun 2012 00:19:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Paul Eggert CC: bug-gnulib , cygwin Subject: Re: [PATCH] root-uid: new module References: <4FEA4A72.8090003@cs.ucla.edu> <4FEA4D53.3090409@redhat.com> <4FEA4FDB.5030105@cs.ucla.edu> In-Reply-To: <4FEA4FDB.5030105@cs.ucla.edu> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig00113B10554D298DEA045234" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00500.txt.bz2 --------------enig00113B10554D298DEA045234 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 981 [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)? >=20 > 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=3D=3D0, since that doesn't quite work everywhere. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig00113B10554D298DEA045234 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 620 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP6lFhAAoJEKeha0olJ0Nq5q8H/3qB0INCIaIRkJfhJdLwaHC5 lzFyy0gdZWtgpbnX0JP6K/5zy9V1XpRF8KI+V3RETccJGn3X21LKqOmcLHsy2zLz JXCA9Ia8mVZpQ/lbgk/7x4VeORdevYAy3zFrJf3QX0r/Fbr8uizISl31Wr4xISob uQd3qH4r6SrcujWBxzhlh2YSNusX9c7lB8R4kxmA1+vdUDCj82EYnXf0EZHH8oBu xe4qFHo2dU6B074L6oG+vp45tloJ2PzkLtIBBoLLCffLyb/epxITCAvi16RH1wyf 5v/Xyz0EXB3K/XdGjd+KmDQj7FnvAqT6Eb1vIHUM4usDHfpIpiihKbdou6GT4hA= =B81T -----END PGP SIGNATURE----- --------------enig00113B10554D298DEA045234--