X-Recipient: archive-cygwin AT delorie DOT 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:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; q= dns; s=default; b=vpBLw8HZ+u9m8FSPSkV5zQG3WS33XeqCm0aE2JaWvbImbH KNr1DDkLVqK2IPOfGC2NH9+pzYLHtjLkfrVFBqDfpjpJPFELYOUwIFusyGQ/pgg/ aNLy/oze9I6px481fx6/xkBn1+w3A9AbSHbLikSFbZaTyb+q1DTrwKnLk9W3c= 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:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= default; bh=oce9Td6zZF9EyoGVUDs89tX7L7A=; b=TJNdOPQJL15lPOnX5sZz +OtdAV/MPzwA+3ngUMZ2wvk4xVoNDtXqJqc3uk+zSxfOgeSeFThvrbQT2qyccHg3 FuWWXKyG4TWA1b+a1fRZx5vVIHmbY8gySVqvMbQ6J+gXeF89jnFAzgPc5CW5Z2E7 74tFqpPFux3cNF3JbYJZaAQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.3 required=5.0 tests=AWL,BAYES_50,SPF_SOFTFAIL,URI_HEX autolearn=no version=3.3.2 X-HELO: mwork.nabble.com Date: Sun, 12 Apr 2015 06:21:34 -0700 (MST) From: =?UTF-8?Q?=C4=B0smail_D=C3=B6nmez?= To: cygwin AT cygwin DOT com Message-ID: <1428844894032-117479.post@n5.nabble.com> In-Reply-To: <20150412083532.GM7343@calimero.vinschen.de> References: <20150410100703 DOT GA4401 AT calimero DOT vinschen DOT de> <1428772308972-117455 DOT post AT n5 DOT nabble DOT com> <20150412083532 DOT GM7343 AT calimero DOT vinschen DOT de> Subject: Re: [TESTERS needed] New POSIX permission handling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Corinna Vinschen-2 wrote > On Apr 11 10:11, donmez wrote: >> Hi, >> >> >> Corinna Vinschen-2 wrote >> > Hi folks, >> > >> > >> > 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. >> >> I tested the updated package and at least quilt and mutt seems to broken >> by >> the permission changes: >> >> [~]> quilt new foo >> cat: /tmp/quilt.mwTVWM: Permission denied >> Patch patches/foo is now on top >> >> And running mutt results in: >> >> "Error creating temporary file /tmp/mutt-...." >> >> Rolling back to an older snapshot fixes the problem. > > Thanks, but... > > 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: Hopefully this will shed some more light: [~]> uname -rm 2.0.0(0.287/5/3) x86_64 [~]> ls -ld /tmp drwxrwxrwt+ 1 ismail ismail 0 Apr 12 16:13 /tmp [~]> getfacl /tmp # file: /tmp # owner: ismail # group: ismail # flags: --t user::rwx user:ismail: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 UX31A\ismail:(F) UX31A\ismail:(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 ismail ismail 0 Apr 12 16:16 /tmp/foo [~]> getfacl /tmp/foo # file: /tmp/foo # owner: ismail # group: ismail user::rw- user:ismail:r-x group::--- mask:r-- other:r-- [~]> icacls C:\\cygwin64\\tmp\\foo C:\cygwin64\tmp\foo NULL SID:(DENY)(Rc,S,X,DC) UX31A\ismail:(DENY)(S,X) UX31A\ismail:(R,W,D,WDAC,WO) UX31A\ismail:(RX) UX31A\ismail:(DENY)(S,X) UX31A\ismail:(RX) Everyone:(R) Successfully processed 1 files; Failed processing 0 files I hope this to be a generic bug, skimmed over one important details. This is on Win 10 beta build 10049 x64. Thanks! -- View this message in context: http://cygwin.1069669.n5.nabble.com/TESTERS-needed-New-POSIX-permission-handling-tp117406p117479.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple