X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=spxXuiSsLns/Wu98y7lBLe3E47HDQGTJIrMa9dWabDYVn2GGN0tv6
	4e/6ISAIOkQMtMvQXQ300T52aInWmOjyEcgESzHDeESmgemAXJZVL8GOQcGEVJtY
	FEZsQ5d6Ik9GNQaifkvYBlFvJsqcynyd3QTZ8hPK8utaAotSrhAdzc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=dHvUNkPuSK6Bki6dhK40i4u8Po4=; b=jw1jDGNgV14Bdk3lP/arUZ1oztt9
	g7k96+iBIonB2NSjptIcl3+pHZ9gccuPD9b9htePF3dkZ71POv6wQcpoiCU9dCKe
	TdnVzJBJf3xj9O9i2kRhLXt1ORXm7rwSvx+J4DQNx8Vol275LfoGYAbzNDRZiI5b
	Rr1Q5fnuwO8kVyM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Sat, 11 Apr 2015 12:23:03 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [TESTERS needed] New POSIX permission handling
Message-ID: <20150411102303.GG19111@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20150410100703.GA4401@calimero.vinschen.de> <CAAXzdLUFeBX6EREpMA2WeMYT+oS8c=JXhqkwrvNYUGjsWFrW8w@mail.gmail.com> <20150411094020.GB19111@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="KIzF6Cje4W/osXrF"
Content-Disposition: inline
In-Reply-To: <20150411094020.GB19111@calimero.vinschen.de>
User-Agent: Mutt/1.5.23 (2014-03-12)

--KIzF6Cje4W/osXrF
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr 11 11:40, Corinna Vinschen wrote:
> On Apr 10 19:00, Steven Penny wrote:
> > On Fri, Apr 10, 2015 at 5:07 AM, Corinna Vinschen wrote:
> > > Please give the new code a try.  I uploaded new 2015-04-10 developer
> > > snapshots to https://cygwin.com/snapshots/
> >=20
> > Here is the test I ran:
> >=20
> >     $ cd /cygdrive/c
> >=20
> >     $ touch ~/{alpha,bravo}.sh ~+/{charlie,delta}.sh
> >=20
> >     $ chmod +x ~/bravo.sh ~+/delta.sh
> >=20
> >     $ ls -l --color ~/{alpha,bravo}.sh ~+/{charlie,delta}.sh
> >     -rw-rw-r--+ 1 John None 0 Apr 10 16:51 /cygdrive/c/charlie.sh
> >     -rwxrwxr-x+ 1 John None 0 Apr 10 16:51 /cygdrive/c/delta.sh    (gre=
en)
> >     -rw-r--r--  1 John None 0 Apr 10 16:51 /home/John/alpha.sh
> >     -rwxrwxr-x  1 John None 0 Apr 10 16:51 /home/John/bravo.sh     (gre=
en)
> >=20
> > So "charlie.sh" looks strange because it has that extra write permissio=
n.
> > However this is not a big deal for me. My concern was that everything w=
as
> > showing up executable (green) when running "ls --color". So overall thi=
s is an
> > improvement, thanks.
>=20
> What is '~+'?  Is that some weird bash feature?
>=20
> Did you check the ACL?  The ACL before and after the change should
> explain what happened.

Oh, sorry, you're createsing new files, so there's no before/after.  In
that case the result in the group permission is based on the MASK value
generated as a result of permission inhertance rules.  So what you
should check is the parent descriptor and look at the inheritable ACEs
(default ACL entries in POSIX speak) and compare them with the
permissions Xof the newly created files.

> Check it with getfacl *and* icacls to get
> an idea what it looks like, and compare the result with the POSIX
> ACL rules, as outlined on, e.g., http://linux.die.net/man/5/acl.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--KIzF6Cje4W/osXrF
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVKPYHAAoJEPU2Bp2uRE+gS1AP/262JxnxlqPJ+saT6uLYtdeK
lsI44pXGa+LuNBb2XWCLnRuhgssOSivZmdhmdiAT7KpM5YnbIXzBqpyl5P2Sy07N
A+vs2RzSyIHAMrshAJ34CiDNS5b6Ku7ZogNAh9tP0xHkI6RwsD/F0Ev6FGvGBjQa
ZYmgxDNh/ZmIIaybUVwY43V3GEElwItasUsGJMJWf1uUlAGd3XF2VpDGQVs8hRhd
ZBnZG82cN9VT9y849fqpXedDA7gbQ93p7QPLWQ+tux9J1CBouCOkcvfb+b5VY9Nx
FFX2ThH7LZKiNr9prh3X/pfPQ9X3PawnDsGNExMzW9GO9O20o5zhSruhyieIR1lW
6VFwBRMKlokKAFghg7I9CXLnjnSYltIDAMrK04W24BkpgP4QgsK8f9APBHF9qRUY
CDu+xbV71lN/kKPy+VDrDfzWBKTuE19cq4Nn9RJifKJ35QXmKFOiivpyTSFEl5C9
FrNyXUM9Kt9UKA0LoEMo2Dq5wL45Hmwea+zpzInnGs1RwygtXL2+geb6/hPbxpjM
t8pVGvVZGwpttvwIRGyn2SAhio5jno0I5Z0bQRdHH8MknpNX5RssRElyLdu6w0pd
T0AnGGFT20IWPHEEo61j3U62QWsG1lyzozUW2OpzZc8rBll9/OZIuPKZJtxY3USK
aIf8fEsb/q/mX9+RkXcu
=tFWE
-----END PGP SIGNATURE-----

--KIzF6Cje4W/osXrF--
