delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/08/23/11:13:22

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Fri, 23 Aug 2002 19:12:51 +0400
From: egor duda <deo AT logos-m DOT ru>
Reply-To: egor duda <cygwin-developers AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <19113724867.20020823191251@logos-m.ru>
To: cygwin-developers AT cygwin DOT com
Subject: acl_access denies access owned by 'Everyone' group
MIME-Version: 1.0

Hi!

  Disclaimer: I have checked this only with cvs version, but
downloading the latest release now to verify things with it.

I have a file:

$ ls -la /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
$ -rw-r-----   1 duda_adm Everyone     7163 Aug 17 22:41 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
$ getfacl /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
# file: /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
# owner: 1291
# group: 0
user::rw-
group::r--
mask::r--
other::---
$ grep Everyone /etc/group
Everyone:S-1-1-0:0:duda,duda_admin

It's owned by different user (i'm currently logged on as 'duda'), but
'r' right to Everyone group which i belong to should give me the right
to access the file.

running gcc, though, shows this in strace

   74  213690 [main] gcc 327 path_conv::check: root_dir(e:\), this->path(e:\unix\usr\lib\gcc-lib\i686-pc-cygwin\3.2\specs), set_has_acls(8)
   75  213765 [main] gcc 327 read_sd: file = e:\unix\usr\lib\gcc-lib\i686-pc-cygwin\3.2\specs
  145  213910 [main] gcc 327 read_sd: file = e:\unix\usr\lib\gcc-lib\i686-pc-cygwin\3.2\specs: len=0
  147  214057 [main] gcc 327 getacl: 4 = getacl (e:\unix\usr\lib\gcc-lib\i686-pc-cygwin\3.2\specs)
  383  214440 [main] gcc 327 __set_errno: int acl_access(const char*, int):458 val 13

and gcc ignores this file and tries to look for specs further.

Is it an error in my setup or something wrong with recent ntsec
changes, which, i saw, affected handling of Everyone group?

If time allows, i'll certainly try to debug this further.

egor.            mailto:deo AT logos-m DOT ru icq 5165414 fidonet 2:5020/496.19

- Raw text -


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