From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17016 invoked by alias); 12 Apr 2015 08:35:36 -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 17007 invoked by uid 89); 12 Apr 2015 08:35:36 -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; Sun, 12 Apr 2015 08:35:35 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7E28FA809F2; Sun, 12 Apr 2015 10:35:32 +0200 (CEST) Date: Sun, 12 Apr 2015 08:35:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [TESTERS needed] New POSIX permission handling Message-ID: <20150412083532.GM7343@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0FRtVia6Q6lt+M0P" Content-Disposition: inline In-Reply-To: <1428772308972-117455.post@n5.nabble.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-04/txt/msg00231.txt.bz2 --0FRtVia6Q6lt+M0P Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2461 On Apr 11 10:11, donmez wrote: > Hi, >=20 >=20 > Corinna Vinschen-2 wrote > > Hi folks, > >=20 > >=20 > > 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 aged > > 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 broken = by > the permission changes: >=20 > [~]> quilt new foo > cat: /tmp/quilt.mwTVWM: Permission denied > Patch patches/foo is now on top >=20 > And running mutt results in: >=20 > "Error creating temporary file /tmp/mutt-...." >=20 > Rolling back to an older snapshot fixes the problem. Thanks, but...=20 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: $ uname -rm 2.0.0(0.287/5/3) x86_64 $ ls -ld /tmp drwxrwxrwt+ 1 corinna vinschen 0 Apr 12 10:25 /tmp $ getfacl /tmp # file: /tmp # owner: corinna # group: vinschen # flags: --t user::rwx group::rwx mask:rwx other:rwx default:user::rwx default:group::r-x default:mask:r-x default:other:r-x $ icacls C:\\cygwin64\\tmp C:\cygwin64\tmp VINSCHEN\corinna:(F) VINSCHEN\vinschen:(RX,W) Everyone:(RX,W) NULL SID:(RD) CREATOR OWNER:(OI)(CI)(IO)(F) CREATOR GROUP:(OI)(CI)(IO)(RX) Everyone:(OI)(CI)(IO)(RX) Successfully processed 1 files; Failed processing 0 files $ touch /tmp/foo $ ls -l /tmp/foo -rw-r--r-- 1 corinna vinschen 0 Apr 12 10:25 /tmp/foo $ getfacl /tmp/foo # file: /tmp/foo # owner: corinna # group: vinschen user::rw- group::r-x mask:r-- other:r-- $ icacls C:\\cygwin64\\tmp\\foo C:\cygwin64\tmp\foo NULL SID:(DENY)(Rc,S,X,DC) VINSCHEN\corinna:(R,W,D,WDAC,WO) VINSCHEN\vinschen:(DENY)(S,X) VINSCHEN\vinschen:(RX) Everyone:(R) Successfully processed 1 files; Failed processing 0 files $ Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --0FRtVia6Q6lt+M0P Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVKi5UAAoJEPU2Bp2uRE+ghegQAJLPE9jwcBW4fvu0Uzr+J3OT BwnDRs7RW3BbSVfojK5W++PVLhRQZsluF4pZ0nlfuDm9x2lZ0cKX5g590Y8z6kXp klCU2aJVpJJNYCUqP2TAd33SaIpWRHc7UKITMhNMiInsmnP/ZgGaja8W9fB/OLx2 +lcr3+7rW4NyDX9tJP/6MHwlo6RblEK7b/8xIWYBkTvHYX28HkzdrcizMtxuCQ3l ePztuQWgGioVPmRteUmby1bYV77iPj6vwL7IsfC618W1Btu4dgcthxEc95r5vXGB T78C6OaFrXXNzZUkBWIzRVcatDcyR1zOPM7jB1JjCjhajm+TYYEmy5mGG1OatoeO 7aZ5R/P3m1GDJdOfB4eHA82/KO1APYIJ72Pb8+CbQkCfdrsTn7GZiHbcBqVP4TTt kjTyd0DQdfb64ldfk4wAS5poEEVYHcXRXejw6XpI1BQQxK4TX6AwM3l2XFjhR+ip ML9sITo5o5IwreoMSll/Vz8nndzxw1aCcNGxLvzL8PavP5HAMqJOFpumkD7SiRJq dft87cyBs3ih4VNbBhoAPnlm6joiE4xeiJlrokL+ins0g5D1/ZVZ/j/PXMyojRj0 l91rXdCkKhvmdP9GPG4SY8Jm++ujN59fEMJAhk37DOtd9w+lgH5tTB4MRYPTd1xu 4qjSBoAp0YryylGvCRWN =Xxfe -----END PGP SIGNATURE----- --0FRtVia6Q6lt+M0P--