Report errors for missing files and check for correct file sizes
[xfstests-dev.git] / 099.out
1 QA output created by 099
2
3 === Test minimal ACE ===
4 Setup file
5 -rwxrw-r-- id1 id2 file1
6
7 --- Test get and set of ACL ---
8 Note: IRIX interface gave an empty ACL - Linux outputs an ACL
9 file1 []
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.
13 Expect to PASS
14 file1 [u::r--,g::rwx,o::rw-]
15
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-]
20
21 --- Test owner permissions ---
22 file1 [u::r-x,g::---,o::---]
23 Expect to PASS
24 Test was executed
25 Expect to FAIL
26 ./file1: Permission denied
27
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
33 Test was executed
34 Expect to PASS - acl2 matches sup group
35 Test was executed
36 Expect to FAIL - acl3 is not in group
37 ./file1: Permission denied
38
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
48 Test was executed
49
50 === Test Extended ACLs ===
51
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]
59 Test was executed
60 Expect to FAIL - USER ACE does not match user
61 ./file1: Permission denied
62
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
70 Test was executed
71 Expect to PASS - GROUP ACE matches sup group
72 Test was executed
73 Expect to FAIL - GROUP ACE does not match group
74 ./file1: Permission denied
75
76 --- Test MASK ---
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
83 Test was executed
84
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
89 Test was executed
90
91 === Test can read ACLs without access permissions ===
92 file1 [o::---,g::---,u::---]
93
94 === Test Default ACLs ===
95 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
96 -r--r-----+ 0 0 file2
97 file2 [u::r--,g::r--,o::---]
98 -r--r-----+ 0 0 file3
99 file3 [u::r--,g::r--,o::---]
100
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::---]
105 Remove ACLs...
106 Note: IRIX interface would mean empty ACLs - Linux would show mode ACLs
107 file1 []
108 acldir []
109 acldir/file2 []
110
111 === Test out error messages for ACL text parsing  ===
112 + chacl u file1
113 chacl: "u" is an invalid ACL specification.
114 + chacl u: file1
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.
128 + chacl a::rwx file1
129 chacl: "a::rwx" is an invalid ACL specification.
130
131 === Test out large ACLs  ===
132 1 below xfs acl max
133 largeaclfile 
134 user::rwx
135 group::rwx
136 other::rwx
137 mask::rwx
138 user:20:rwx
139 user:19:rwx
140 user:18:rwx
141 user:17:rwx
142 user:16:rwx
143 user:15:rwx
144 user:14:rwx
145 user:13:rwx
146 user:12:rwx
147 user:11:rwx
148 user:10:rwx
149 user:9:rwx
150 user:8:rwx
151 user:7:rwx
152 user:6:rwx
153 user:5:rwx
154 user:4:rwx
155 user:3:rwx
156 user:2:rwx
157 user:1:rwx
158
159 xfs acl max
160 largeaclfile 
161 user::rwx
162 group::rwx
163 other::rwx
164 mask::rwx
165 user:21:rwx
166 user:20:rwx
167 user:19:rwx
168 user:18:rwx
169 user:17:rwx
170 user:16:rwx
171 user:15:rwx
172 user:14:rwx
173 user:13:rwx
174 user:12:rwx
175 user:11:rwx
176 user:10:rwx
177 user:9:rwx
178 user:8:rwx
179 user:7:rwx
180 user:6:rwx
181 user:5:rwx
182 user:4:rwx
183 user:3:rwx
184 user:2:rwx
185 user:1:rwx
186
187 1 above xfs acl max
188 chacl: error setting access acl on "largeaclfile":Error 0
189 largeaclfile 
190 user::rwx
191 group::rwx
192 other::rwx
193 mask::rwx
194 user:21:rwx
195 user:20:rwx
196 user:19:rwx
197 user:18:rwx
198 user:17:rwx
199 user:16:rwx
200 user:15:rwx
201 user:14:rwx
202 user:13:rwx
203 user:12:rwx
204 user:11:rwx
205 user:10:rwx
206 user:9:rwx
207 user:8:rwx
208 user:7:rwx
209 user:6:rwx
210 user:5:rwx
211 user:4:rwx
212 user:3:rwx
213 user:2:rwx
214 user:1:rwx
215