2001-01-15 05:01:19 +00:00
|
|
|
QA output created by 051
|
|
|
|
|
|
|
|
|
|
=== Test minimal ACE ===
|
|
|
|
|
Setup file
|
2001-02-06 05:41:13 +00:00
|
|
|
-rwxrw-r-- id1 id2 file1
|
2001-01-15 05:01:19 +00:00
|
|
|
|
|
|
|
|
--- Test get and set of ACL ---
|
|
|
|
|
file1 []
|
|
|
|
|
Expect to FAIL
|
|
|
|
|
chacl: "u::r--,g::rwx,o:rw-" is an invalid ACL specification.
|
|
|
|
|
Expect to PASS
|
|
|
|
|
file1 [u::r--,g::rwx,o::rw-]
|
|
|
|
|
|
|
|
|
|
--- Test sync of ACL with std permissions ---
|
2001-02-06 05:41:13 +00:00
|
|
|
-r--rwxrw- id1 id2 file1
|
|
|
|
|
-rw-rwxrw- id1 id2 file1
|
2001-01-15 05:01:19 +00:00
|
|
|
file1 [u::rw-,g::rwx,o::rw-]
|
|
|
|
|
|
|
|
|
|
--- Test owner permissions ---
|
|
|
|
|
file1 [u::r-x,g::---,o::---]
|
|
|
|
|
Expect to PASS
|
|
|
|
|
Test was executed
|
|
|
|
|
Expect to FAIL
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
|
|
|
|
|
--- Test group permissions ---
|
|
|
|
|
file1 [u::---,g::r-x,o::---]
|
|
|
|
|
Expect to FAIL - acl1 is owner
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to PASS - acl2 matches group
|
|
|
|
|
Test was executed
|
|
|
|
|
Expect to PASS - acl2 matches sup group
|
|
|
|
|
Test was executed
|
|
|
|
|
Expect to FAIL - acl3 is not in group
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
|
|
|
|
|
--- Test other permissions ---
|
|
|
|
|
file1 [u::---,g::---,o::r-x]
|
|
|
|
|
Expect to FAIL - acl1 is owner
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to FAIL - acl2 is in group
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to FAIL - acl2 is in sup. group
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to PASS - acl3 is not owner or in group
|
|
|
|
|
Test was executed
|
|
|
|
|
|
|
|
|
|
=== Test Extended ACLs ===
|
|
|
|
|
|
|
|
|
|
--- Test adding a USER ACE ---
|
|
|
|
|
Expect to FAIL as no MASK provided
|
|
|
|
|
chacl: error setting access acl on "file1": Invalid argument
|
|
|
|
|
Ensure that ACL has not been changed
|
|
|
|
|
file1 [u::---,g::---,o::r-x]
|
|
|
|
|
Expect to PASS - USER ACE matches user
|
2001-02-06 05:41:13 +00:00
|
|
|
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
|
2001-01-15 05:01:19 +00:00
|
|
|
Test was executed
|
|
|
|
|
Expect to FAIL - USER ACE does not match user
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
|
|
|
|
|
--- Test adding a GROUP ACE ---
|
|
|
|
|
Expect to FAIL as no MASK provided
|
|
|
|
|
chacl: error setting access acl on "file1": Invalid argument
|
|
|
|
|
Ensure that ACL has not been changed
|
2001-02-06 05:41:13 +00:00
|
|
|
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
|
|
|
|
|
file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to PASS - GROUP ACE matches group
|
|
|
|
|
Test was executed
|
|
|
|
|
Expect to PASS - GROUP ACE matches sup group
|
|
|
|
|
Test was executed
|
|
|
|
|
Expect to FAIL - GROUP ACE does not match group
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
|
|
|
|
|
--- Test MASK ---
|
2001-02-20 08:07:09 +00:00
|
|
|
file1 [u::---,g::---,o::---,g:id2:r-x,m::-w-]
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to FAIL as MASK prohibits execution
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to FAIL as MASK prohibits execution
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to PASS as MASK allows execution
|
|
|
|
|
Test was executed
|
|
|
|
|
|
|
|
|
|
--- Test ACE priority ---
|
|
|
|
|
Expect to FAIL as should match on owner
|
2001-02-20 08:07:09 +00:00
|
|
|
./file1: Permission denied
|
2001-01-15 05:01:19 +00:00
|
|
|
Expect to PASS as should match on user
|
|
|
|
|
Test was executed
|
|
|
|
|
|
|
|
|
|
=== Test can read ACLs without access permissions ===
|
2001-02-06 05:41:13 +00:00
|
|
|
file1 [o::---,g::---,u::---]
|
2001-01-15 05:01:19 +00:00
|
|
|
|
|
|
|
|
=== Test Default ACLs ===
|
2001-02-06 05:41:13 +00:00
|
|
|
acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
|
2001-01-15 05:01:19 +00:00
|
|
|
-r--r----- 0 0 file2
|
2001-02-06 05:41:13 +00:00
|
|
|
file2 [u::r--,g::r--,o::---]
|
2001-04-02 00:41:31 +00:00
|
|
|
|
|
|
|
|
=== Removing ACLs ===
|
|
|
|
|
file1 [o::---,g::---,u::---]
|
|
|
|
|
acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
|
|
|
|
|
acldir/file2 [u::r--,g::---,o::---]
|
|
|
|
|
Remove ACLs...
|
|
|
|
|
file1 []
|
|
|
|
|
acldir []
|
|
|
|
|
acldir/file2 []
|