This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Star (second try)


On Wed, Sep 05, 2001 at 12:50:43PM +0200, schilling@fokus.gmd.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@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]