delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/21/14:58:59

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=sj2m+p/cidxKmrxy
jyC9KtLbtVFb/HQtgnI7SsZY4Ripg0lWwNmzKunDv9ssKiyq9KHmZZm4Bq/ih38T
I5Up7XKrJtJvikaLSlrfcfyIb1WJz1stNy8galG82HFDrQLTjQzpa8QYJd6t5Y/Q
Z1QyQ3g/EF+ytqJe/EN61sFLS5s=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=jjU/I54lHwguCfNkRQjjEQ
aUvhc=; b=Vuat82DZcPD0PBRcsXQiqjHxl9XnUKmfWBQDtqhweidgg9GEfL2BEs
wkfhHz0EwUxggF4fslzNCD1kiVUM5BXFI5E4/Av0m1/qNQ3lxkUSdleNACpEtBuO
MDs8Aus7chG2bey009j5l200Mer3RxjFio8foDWQFKtNNjmFOSnzE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1691, HX-Received:sk:u9-v6mr
X-HELO: mail-io0-f181.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pVbeLZ+pdbDcxXHPEva0wOYJms5KW1X5H+nyZ9Y5gCA=; b=DdOsrldP07UrhMSciJeUv9pQSClFYxBpuAWJlyw8bFRsYTNvT4e7B+31qdR1yzCfMN 68sRW+kd4iEv8zFX1IkBu2R4IeJmNhd/hjXa2l3Xxr8ZeISmaYEgcKawIpHa64YGRMfv nc8v8FR2HTQifnFy2ALlC8/dK3xyMlarGTZV5kB0U5uiTcLNziJ/UA/N7sX6/8vThBiS 7SQOzBNkC+L6S89DbH4llzujrw78O98GcDOqISDRYKcfp7fM6YMiAIaMoi2YE5g8dBOs qhZ2H76GJoNefRvOUG5z7iuEYHA8+Z+IhHsS5IV7VvkcrYTGrVcCoxjY0qmbHEkkxYlf IMlg==
Subject: Re: gettext - acl tests - cygwin specific code path
To: cygwin AT cygwin DOT com
References: <20968a92-9900-5fd0-807c-29facf8b84de AT gmail DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Openpgp: preference=signencrypt
Message-ID: <05c3ca13-c103-ae7d-e727-a995a4cf5f66@gmail.com>
Date: Tue, 21 Aug 2018 14:58:42 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <20968a92-9900-5fd0-807c-29facf8b84de@gmail.com>
X-IsSubscribed: yes

On 8/21/2018 11:52 AM, cyg Simple wrote:
> I've been reviewing the testing of gettext and I have a failure for all
> of the acl tests.  I've found that a file without acl will obtain acl if
> the mode is changed to 605. STC below.
> 
> <STC>
> $ touch /tmp/tmpfile0
> $ ls -l /tmp/tmpfile0
> -rw-r--r-- 1 myUser myGroup 0 Aug 21 11:35 /tmp/tmpfile0
> $ getfacl /tmp/tmpfile0
> # file: /tmp/tmpfile0
> # owner: myUser
> # group: myGroup
> user::rw-
> group::r--
> other:r--
> $ chmod 600
> $ ls -l /tmp/tmpfile0
> -rw------- 1 myUser myGroup 0 Aug 21 11:35 /tmp/tmpfile0
> $ getfacl /tmp/tmpfile0
> # file: /tmp/tmpfile0
> # owner: myUser
> # group: myGroup
> user::rw-
> group::---
> other:---
> $ chmod 605
> $ ls -l /tmp/tmpfile0
> -rw----r-x+ 1 myUser myGroup 0 Aug 21 11:35 /tmp/tmpfile0
> $ getfacl /tmp/tmpfile0
> # file: /tmp/tmpfile0
> # owner: myUser
> # group: myGroup
> user::rw-
> group::---
> other:r-x
> user:myUser:---
> </STC>
> 
> gettext loops through a number of modes and fortunately one of those had
> an owner and other without the group. Anytime the other is set without
> the owner or group having permission we get an ACL for the user which is
> wrong.  A `setfacl -b /tmp/tmpfile0` doesn't correct the information
> from getfacl.
> 

During the testing at least one of the tests does `setfacl -m group:0:1
tmpfile0`.  Obviously this gets a 'permission denied' error as group 0
doesn't exist.  What do you suggest for reasonable replacement for 0?
I'm thinking 11(Authenticated Users) as the purpose of the test is to
determine if the use of `set_acl (file, -1, mode);` will reset to a file
without acl.

-- 
cyg Simple

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019