From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114870 invoked by alias); 15 Apr 2015 15:42:33 -0000 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 Received: (qmail 114859 invoked by uid 89); 15 Apr 2015 15:42:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Apr 2015 15:42:31 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 06BD7A807D2; Wed, 15 Apr 2015 17:42:26 +0200 (CEST) Date: Wed, 15 Apr 2015 15:42:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [TESTERS needed] New POSIX permission handling Message-ID: <20150415154225.GD7343@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20150410100703.GA4401@calimero.vinschen.de> <1428772308972-117455.post@n5.nabble.com> <20150412083532.GM7343@calimero.vinschen.de> <1428844894032-117479.post@n5.nabble.com> <20150412142521.GR7343@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8SUh+pnhVixfgwb7" Content-Disposition: inline In-Reply-To: <20150412142521.GR7343@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-04/txt/msg00337.txt.bz2 --8SUh+pnhVixfgwb7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2601 Hi Ismail, On Apr 12 16:25, Corinna Vinschen wrote: > On Apr 12 06:21, =C4=B0smail D=C3=B6nmez wrote: > > Corinna Vinschen-2 wrote > > > On Apr 11 10:11, donmez wrote: > > >> Corinna Vinschen-2 wrote > > >> > I just applied a patch I'm working on for quite some time now. As= I > > >> > outlined before on this list, the POSIX permission handling has ag= ed > > >> > considerably and, for historical reasons, did things differently > > >> > dependent on the calling function. I took the time to reimplement= the > > >> > core functionality to handle all ACLs as strictly following POSIX = ACL > > >> > rules as possible. > > >>=20 > > >> I tested the updated package and at least quilt and mutt seems to br= oken > > >> by > > >> the permission changes: > > >> [...] > > > No offense, but this is not overly helpful. The problem is to learn > > > *why* this happens and how to fix it. For that I'd need to know what > > > your permissions on /tmp look like (ls -l, getfacl, icacls). Creating > > > files in my /tmp (having an old-style ACL) with the following > > > permissions works as desired for me: > >=20 > > Hopefully this will shed some more light: >=20 > It does, thank you. The problem is the dreaded "owner =3D=3D group" prob= lem > introduced with these weird Microsoft accounts. I completely forgot > about this while implementing the new code. It's pretty tricky to get > the Windows ACL right for this. Additionally the ACLs already created > by setup are... borderline correct only. Back to the drawing board... I just applied a patch which is supposed to handle this owner=3D=3Dgroup scenario better. In short, Cygwin will try to handle POSIX user and group permissions separately, even if owner =3D=3D group. This is basically a fake as far as the actual permissions of the account are concerned, but it allows applications still to chmod to different user and group perms. It just *looks* different in the end. The only restriction of this is that the POSIX user permissions are always changed so that the user perms are >=3D the group perms in this situation. So this: chmod 460 foo will be internally twisted into chmod 660 foo I uploaded new developer snapshots to https://cygwin.com/snapshots/ and I'm just uploading a 2.0.0-0.5 test release with this change. Please give either of them a try. I'd be interested in feedback, ideally with details if something doesn't work as desired. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --8SUh+pnhVixfgwb7 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVLobhAAoJEPU2Bp2uRE+g870P/jYtTjPonSTtKPYqgt0IVqEC 0qpo/YUVcuTS6CNCfP/gF994QOb4eOqp5SepL/d9MnM9hCQQ5Q4VGDMU93/QGF/h RApGXQNSmuuK9YrohFqr+w9LMrr/IiLuFFu3P4i3LxqSiGQ4SkmuSBHLDsSYk5E5 udB5deHuMpxwoujaCq7PGt1njqpsNzqbh3USeCOfFeLHE1vS4CU9E+eanr2Pm0UH hl2DKRaxotiYdv53mXWvq+DxbKSpBAR0aQU7+pvh7W61QVayyLLBFxzH4BbnslwK +l00xi6gI2XwMN8HzIvSlOWtkF9hZXoMNXU1LjqqGfTQM2L+ewcEhTJjI6bqeVUH NlVt5TWqiSw5l/SQzhFtoQQB0Kj+mh9MOKpQraVfK1D29GJMwUW9E455qzabdlfF ZeFBVcRlLhN1A5penevAj6TUBhdIvSq6NnP63gGbEoYf9u5IuOth6sCHnsNfGCZ+ I5apV9UFzSfTIMA0ZhfbUlSGvE+on0hxKkd4Vd9ZT9M70JSsAOgVnNqTWKLHIGBm d6R8UxuK0hVKE6y5uXGTD6y1IK0ZP+kqBNeRftTVdLHWG5NEg9SHMlEcAifONRD/ FVA3FqcWgnMC5ECSWIS0B56U964fwPXFcxQ/IJeeARW6i2Uh2SodTP8HpKBhSgH+ cK1Z4WnR1rsntNhWxQzV =jWPc -----END PGP SIGNATURE----- --8SUh+pnhVixfgwb7--