Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Ann Majeske <Ann.Majeske@Compaq.com>
Subject: Re: Tru64 ACL
Date: Mon, 12 Nov 2001 14:23:02 -0500	[thread overview]
Message-ID: <3BF02196.A61B50A4@Compaq.com> (raw)
In-Reply-To: 3BEFB055.A4760FD9@fokus.fhg.de

A few comments.  Caveat:  These comments are my opinions
and recollections and are not an "official" response
from Compaq on ACL support.

The POSIX draft specification for ACLs that had been under
development for years and years was killed a couple
years ago, so there are no industry standards for an ACL
implementation on UNIX.  Given this, you can't expect that
ANY of the UNIX implementations of ACLs will truly
interoperate unless the given vendors worked out a deal
to make them interoperate.  Most of the vendors used
one of the various drafts of the defunct POSIX 
specification as a basis for their ACL implementation, so 
most of the ACL implementations will be similar, but not 
the same.  The specification never did include information
on exactly how the ACL information should be stored in
a tar archive, so there's very little likelyhood that
a tar archive containing ACLs from one vendor's version
of tar will be readable (at least as far as the ACLs go)
by another vendor's tar.

The TRU64 UNIX ACL implementation was designed to draft 13
of the defunct POSIX specification, P1003.6.1/D13.  (Yes, 
I know that this is a very old version of the specification, 
but given that the specification has been killed there's not 
alot of motivation for updating to a newer draft).  The 
draft 13 version of this specification did not include the 
"mask" entries.  Every other published draft of the 
specification or so would include the "mask" entries, then 
they'd be yanked out again.  I think this level of 
thrashing was the main reason the specification was killed.

Since many of the vendors developing ACLs developed them
to various versions of the POSIX draft specifications there
will be routines with the same names that act differently.
The TRU64 UNIX versions of these routines aren't necessarily
"wrong" if they don't work the same as other vendors
versions of the routines, many of the differences are due to 
differences in the draft of the specification used.

That said, there have been several bug fixes made to the
ACL implementation over the years.  So you might want
to install the latest version of TRU64 UNIX to get the 
most up to date stuff.
 
    **** First tests on True64 show that the POSIX.1e function
    **** acl_from_text() does not work as expected.
One of the bugs (that will be fixed in a future release) is 
that acl_get_entry() cannot follow acl_from_text() directly, 
you have to do a acl_first_entry() first.  This may be the 
cause of the problems mentioned above with acl_from_text(), 
but not enough information has been supplied for me to be sure.
Otherwise my tests show that acl_from_text() is working
as expected for Draft 13 of the specification.

    **** On True64 also the
    **** function acl_get_file() does not work properly if a file
    **** does not have ACLs. Note that the standard requests that
    **** in this case acl_get_file() should return a 3 entry ACL,
    **** but on True64 it returns NULL with 'errno' unchanged.
I tried this on a V4.0G system and a V5.1A system, and 
acl_get_file() works as expected, i.e. returns a 3 entry 
ACL, so I don't know what the problem was here.

    **** As a TAR archive with ACLs made on True64 is not usable on
    **** any other system, ACL support on True64 could be called
    **** broken.
As I pointed out above, just because the ACL implementation 
is different doesn't mean that it is broken.  There is no 
industry standard ACL implementation.

FYI: The "tar" supplied with TRU64 UNIX was modified in V5.0A 
to work in a consistent manner with TRU64 UNIX ACLs.  The man
page for this tar describes how the command interacts with 
ACLs.  This tar can save and restore ACLs on TRU64 UNIX, but
will not interoperate with other companies UNIX ACL 
implementations.  

I hope this clarifies things a little.

Ann


      reply	other threads:[~2001-11-12 19:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-12 11:19 Tru64 ACL Michael Kleis
2001-11-12 19:23 ` Ann Majeske [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox