1 QA output created by 051
3 === Test minimal ACE ===
5 -rwxrw-r-- 1001 1002 file1
7 --- Test get and set of ACL ---
10 chacl: "u::r--,g::rwx,o:rw-" is an invalid ACL specification.
12 file1 [u::r--,g::rwx,o::rw-]
14 --- Test sync of ACL with std permissions ---
15 -r--rwxrw- 1001 1002 file1
16 -rw-rwxrw- 1001 1002 file1
17 file1 [u::rw-,g::rwx,o::rw-]
19 --- Test owner permissions ---
20 file1 [u::r-x,g::---,o::---]
24 sh: ./file1: Permission denied
26 --- Test group permissions ---
27 file1 [u::---,g::r-x,o::---]
28 Expect to FAIL - acl1 is owner
29 sh: ./file1: Permission denied
30 Expect to PASS - acl2 matches group
32 Expect to PASS - acl2 matches sup group
34 Expect to FAIL - acl3 is not in group
35 sh: ./file1: Permission denied
37 --- Test other permissions ---
38 file1 [u::---,g::---,o::r-x]
39 Expect to FAIL - acl1 is owner
40 sh: ./file1: Permission denied
41 Expect to FAIL - acl2 is in group
42 sh: ./file1: Permission denied
43 Expect to FAIL - acl2 is in sup. group
44 sh: ./file1: Permission denied
45 Expect to PASS - acl3 is not owner or in group
48 === Test Extended ACLs ===
50 --- Test adding a USER ACE ---
51 Expect to FAIL as no MASK provided
52 chacl: error setting access acl on "file1": Invalid argument
53 Ensure that ACL has not been changed
54 file1 [u::---,g::---,o::r-x]
55 Expect to PASS - USER ACE matches user
56 file1 [u::---,g::---,o::---,u:1002:r-x,m::rwx]
58 Expect to FAIL - USER ACE does not match user
59 sh: ./file1: Permission denied
61 --- Test adding a GROUP ACE ---
62 Expect to FAIL as no MASK provided
63 chacl: error setting access acl on "file1": Invalid argument
64 Ensure that ACL has not been changed
65 file1 [u::---,g::---,o::---,u:1002:r-x,m::rwx]
66 file1 [u::---,g::---,o::---,g:1002:r-x,m::rwx]
67 Expect to PASS - GROUP ACE matches group
69 Expect to PASS - GROUP ACE matches sup group
71 Expect to FAIL - GROUP ACE does not match group
72 sh: ./file1: Permission denied
75 file1 [u::---,g::---,o::---,g:1002:r-x,m::-wx]
76 Expect to FAIL as MASK prohibits execution
77 ./file1: ./file1: Permission denied
78 Expect to FAIL as MASK prohibits execution
79 ./file1: ./file1: Permission denied
80 Expect to PASS as MASK allows execution
83 --- Test ACE priority ---
84 Expect to FAIL as should match on owner
85 sh: ./file1: Permission denied
86 Expect to PASS as should match on user
89 === Test can read ACLs without access permissions ===
90 ./file1 [o::---,g::---,u::---]
92 === Test Default ACLs ===
93 ./acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
95 ./file2 [u::r--,g::r--,o::---]