This changes acl_get_file and acl_get_fd so that if an ACL has
never been explicitly set on a file/directory then in the
default compatibility mode, for access ACLs, a mininum 3-entry
ACL based on the std permissions is returned, and for default ACLs,
an empty (zero count) ACL is returned.
In IRIX compatibility mode (set by acl_set_compat(3)),
the IRIX semantics are preserved - which are, in both cases, an
ACL with a count of ACL_NOT_PRESENT (-1) is returned.
--Tim
Date: Wed May 23 02:02:48 PDT 2001
Workarea: snort.melbourne.sgi.com:/diskb/build4/tes/slinx-xfs-acl
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs
Modid: 2.4.x-xfs:slinx:95765a
cmd/xfstests/src/acl_get.c - 1.1
- Gets an ACL on a file in various ways specified as different options.
cmd/xfstests/057 - 1.1
- Test out compatibility modes attempting to retrieve an
ACL from a file when none has been explicitly set using chacl.
cmd/xfstests/057.out - 1.1
- out for 57
cmd/acl/man/man3/acl_set_compat.3 - 1.1
- Describe what acl_set_compat does.
cmd/xfstests/src/Makefile - 1.5
- Add acl_get to get an acl on a file.
cmd/xfstests/group - 1.10
- Add 057 for ACLs.
cmd/acl/man/man3/acl_get_file.3 - 1.3
- Explain the effects of acl_set_compat.
cmd/acl/chacl/chacl.c - 1.4
- With change to libacl, we now need to call
acl_set_compat(ACL_COMPAT_IRIXGET)
to gain IRIX semantics.
cmd/acl/man/man3/acl_get_fd.3 - 1.3
- Explain the effects of acl_set_compat.
cmd/acl/libacl/acl.c - 1.8
- Add stuff for acl_set_compat() to turn on/off irix semantics.
Change acl_get_fd() and acl_get_file() to handle different
compatibilities.
cmd/acl/include/acl.h - 1.4
- Add stuff for acl_set_compat() to turn on/off irix semantics.
cmd/xfstests/include/builddefs.in - 1.4
- Need to include the acl stuff.
|