www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/05/07:25:44

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Wed, 5 Sep 2001 13:22:44 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com, schilling AT fokus DOT gmd DOT de
Subject: Re: Star (second try)
Message-ID: <20010905132244.G30380@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygwin-developers AT cygwin DOT com, schilling AT fokus DOT gmd DOT de
References: <200109051050 DOT MAA22923 AT burner DOT fokus DOT gmd DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <200109051050.MAA22923@burner.fokus.gmd.de>; from schilling@fokus.gmd.de on Wed, Sep 05, 2001 at 12:50:43PM +0200

On Wed, Sep 05, 2001 at 12:50:43PM +0200, schilling AT fokus DOT gmd DOT de wrote:
> OK, if NTFS ACLs are that different from POSIX ACLs then it probably
> won't make sense to use that to backup a FS. As star supports the
> RMT protocol nicely even on Cygwin backups using star may make sense.
> You could do a lot on Win9x if there was a function to get/set DOS file flags
> by using POSIX filenames. As I did not install cygwin sources for compilation,
> it would probably not make sense if I send a (untested) patch for that.

Just to be clear.  The Windows native implementation is very
different from the Solaris/POSIX implementations.  Cygwin uses
them when available (NTFS filesystem) and fakes them otherwise.
Let's talk about NTFS only.  Cygwin uses the underlying NTFS
implementation to implement POSIX like permissions (stat, chmod,
chown) and Solaris ACL calls (acl, facl, aclcheck, aclsort,
acltomode, ...).  Even the Solaris getfacl(1) and setfacl(1) tools
are available.  The reason for the Solaris implementation is
simple:  I didn't know of POSIX ACLs when I implemented that.

> >Our acl related calls are currently only Solaris compatible.  The
> >header is cygwin/acl.h, the source code is mainly in sec_acl.cc.
> 
> I'll have a lookt at it. A Solaris ACL implementation for star will be
> available soon (when the Linux guys start to enhance star for Linux.

Why does that have to wait until the Linux guys are doing something?
The solaris ACL calls are already available for... Solaris (and
Cygwin).  So I would assume that implementing and testing star for
Solaris ACLs isn't dependent on Linux but on Solaris itself.

> >If you find bugs in the implementation, feel free to send patches
> >or drop a note (best with example code).  If you want to have POSIX
> >compatible calls as soon as possible, the `send patches' suggestion
> >applies, too.  I'm planning to extend the calls to become POSIX
> >compatible at a later time anyway, not in 1.3.3 though.
> 
> Let's just wait for this and see what happend with the Linux code.
> The persons involved with ACLs on Linux like to make it POSIX compliant.
> Maybe some of the code can be reused.

You mean in star?  Or do you mean Linux code to be reused in Cygwin?
The first is very likely, the second is absolutely impossible.  Cygwin
relies on the Windows native API, naturally.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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