1 QA output created by 099
3 === Test minimal ACE ===
5 -rwxrw-r-- id1 id2 file1
7 --- Test get and set of ACL ---
8 Note: IRIX interface gave an empty ACL - Linux outputs an ACL
10 Try using single colon separator
11 Note: IRIX interface FAILs because of single colon - Linux one allows it
12 chacl: "u::r--,g::rwx,o:rw-" is an invalid ACL specification.
14 file1 [u::r--,g::rwx,o::rw-]
16 --- Test sync of ACL with std permissions ---
17 -r--rwxrw-+ id1 id2 file1
18 -rw-rwxrw-+ id1 id2 file1
19 file1 [u::rw-,g::rwx,o::rw-]
21 --- Test owner permissions ---
22 file1 [u::r-x,g::---,o::---]
26 ./file1: Permission denied
28 --- Test group permissions ---
29 file1 [u::---,g::r-x,o::---]
30 Expect to FAIL - acl1 is owner
31 ./file1: Permission denied
32 Expect to PASS - acl2 matches group
34 Expect to PASS - acl2 matches sup group
36 Expect to FAIL - acl3 is not in group
37 ./file1: Permission denied
39 --- Test other permissions ---
40 file1 [u::---,g::---,o::r-x]
41 Expect to FAIL - acl1 is owner
42 ./file1: Permission denied
43 Expect to FAIL - acl2 is in group
44 ./file1: Permission denied
45 Expect to FAIL - acl2 is in sup. group
46 ./file1: Permission denied
47 Expect to PASS - acl3 is not owner or in group
50 === Test Extended ACLs ===
52 --- Test adding a USER ACE ---
53 Expect to FAIL as no MASK provided
54 chacl: error setting access acl on "file1":Invalid argument
55 Ensure that ACL has not been changed
56 file1 [u::---,g::---,o::r-x]
57 Expect to PASS - USER ACE matches user
58 file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
60 Expect to FAIL - USER ACE does not match user
61 ./file1: Permission denied
63 --- Test adding a GROUP ACE ---
64 Expect to FAIL as no MASK provided
65 chacl: error setting access acl on "file1":Invalid argument
66 Ensure that ACL has not been changed
67 file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
68 file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
69 Expect to PASS - GROUP ACE matches group
71 Expect to PASS - GROUP ACE matches sup group
73 Expect to FAIL - GROUP ACE does not match group
74 ./file1: Permission denied
77 file1 [u::---,g::---,o::---,g:id2:r-x,m::-w-]
78 Expect to FAIL as MASK prohibits execution
79 ./file1: Permission denied
80 Expect to FAIL as MASK prohibits execution
81 ./file1: Permission denied
82 Expect to PASS as MASK allows execution
85 --- Test ACE priority ---
86 Expect to FAIL as should match on owner
87 ./file1: Permission denied
88 Expect to PASS as should match on user
91 === Test can read ACLs without access permissions ===
92 file1 [o::---,g::---,u::---]
94 === Test Default ACLs ===
95 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
97 file2 [u::r--,g::r--,o::---]
99 file3 [u::r--,g::r--,o::---]
101 === Removing ACLs ===
102 file1 [o::---,g::---,u::---]
103 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
104 acldir/file2 [u::r--,g::r--,o::---]
106 Note: IRIX interface would mean empty ACLs - Linux would show mode ACLs
111 === Test out error messages for ACL text parsing ===
113 chacl: "u" is an invalid ACL specification.
115 chacl: "u:" is an invalid ACL specification.
116 + chacl u:rumpledumpleunknownuser file1
117 chacl: "u:rumpledumpleunknownuser" is an invalid ACL specification.
118 + chacl u:rumpledumpleunknownuser: file1
119 chacl: "u:rumpledumpleunknownuser:" is an invalid ACL specification.
120 + chacl g:rumpledumpleunknowngrp file1
121 chacl: "g:rumpledumpleunknowngrp" is an invalid ACL specification.
122 + chacl g:rumpledumpleunknowngrp: file1
123 chacl: "g:rumpledumpleunknowngrp:" is an invalid ACL specification.
124 + chacl o:user1:rwx file1
125 chacl: "o:user1:rwx" is an invalid ACL specification.
126 + chacl m:user1:rwx file1
127 chacl: "m:user1:rwx" is an invalid ACL specification.
129 chacl: "a::rwx" is an invalid ACL specification.
131 === Test out large ACLs ===
188 chacl: error setting access acl on "largeaclfile":Error 0