From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,7380963cc51fd3e6 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-12 11:23:50 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3BF02196.A61B50A4@Compaq.com> From: Ann Majeske X-Mailer: Mozilla 4.78 [en] (X11; U; OSF1 X5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Tru64 ACL References: <3BEFB055.A4760FD9@fokus.fhg.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 12 Nov 2001 14:23:02 -0500 NNTP-Posting-Host: 16.140.128.94 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1005593025 16.140.128.94 (Mon, 12 Nov 2001 11:23:45 PST) NNTP-Posting-Date: Mon, 12 Nov 2001 11:23:45 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:5786 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