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:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-type; q=dns; s=default; b=wwlEC B5G8w1xthOjNeqVpmFwm3KJytahzNg78qR+kT1/7FqdKoHGOC2qo8DtAuqI71fGW iW5Vhy+T6GLmEFzmnqvYOSDOeKkVJ68zoz9+4zvIzTiX/usPitFgGkoltoLRm4Di 1zrVgpwaxAULnZ3SlH3UhRxODUQEJQw/0j6/Cs= 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:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-type; s=default; bh=NSRhZn9mWkm +3aMT2Nfcv4mxDHM=; b=BPJLdOLglXdcYlRTVW7WAnylhobc8GUrybOThVwP4HT YiwcKr1LSr0pheJzhRf9v4Ig7y4Y4JT6F81Rj0/QF6BuSg2tTET1eTFxB4SQAN0i kj9J1d3ldoaPO3Z1gAAb3XycKdUc0sMVA5qSnK6zdhNElKZwM5bt9hE2t6l52q6A = 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=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-10.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-04.arcor-online.net 3mrzYn1590z9vtV From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Shares with strange ACL settings In-Reply-To: <20150812155817.GN13029@calimero.vinschen.de> (Corinna Vinschen's message of "Wed, 12 Aug 2015 17:58:17 +0200") References: <20150812152601 DOT GL13029 AT calimero DOT vinschen DOT de> <20150812155817 DOT GN13029 AT calimero DOT vinschen DOT de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Date: Wed, 12 Aug 2015 20:09:00 +0200 Message-ID: <878u9g9y6b.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain Corinna Vinschen writes: > Cygwin is aware of them and access(2) explicitely checks for them. That > obviously doesn't help for applications like perl, who "know better" > than the underlying OS how to evaluate perms. Perl is making use of an explicit guarantee in POSIX' ACL specification, placed there in order to be backwards compatible to a system without ACL. Whether it is a good idea to do this is debatable of course and I might hunt that code path down in Perl and squash it in some future release. It nevertheless is chink in Cygwin's shiny armor of "hey, we're POSIX of the Linux flavor". FWIW, Git seems to have an explicit check for POSIXPERMS in order to sort out systems that don't conform exactly to that expectation. > It does. Another, *very* simple idea is this: Spill the group and > other perms into the user bits only if the owner of the file is the > current user. Would that help? I think so, but there are likely some corner cases. But I think that had been proposed and shot down already, so I was trying to come up with something less intrusive. > But there's no additional checking necessary because the perms are > guarded by the OS anyway. The applications just don't know them exactly. I have several scripts where tests for a readable file had to be replaced with a test for non-zero-size file or just existing file. Also, with the noacl option you'll always get a positive on most tests and if the code is unprepared to handle the inevitable failure on the actual access, then bad things can happen. Not every piece of code has already converted to the "let's try it and bail out when we get told to get off" style of file access. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- 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