Currently there are a few ways mkfs options are specified in XFSQA:
[xfstests-dev.git] / 051.out
1 QA output created by 051
2
3 === Test minimal ACE ===
4 Setup file
5 -rwxrw-r-- id1 id2 file1
6
7 --- Test get and set of ACL ---
8 Note: Old interface gave an empty ACL - now output an ACL
9 file1 [u::rwx,g::rw-,o::r--]
10 Try using single colon separator
11 Note: Old interface FAILed because of single colon - new one allows it
12 Expect to PASS
13 file1 [u::r--,g::rwx,o::rw-]
14
15 --- Test sync of ACL with std permissions ---
16 -r--rwxrw- id1 id2 file1
17 -rw-rwxrw- id1 id2 file1
18 file1 [u::rw-,g::rwx,o::rw-]
19
20 --- Test owner permissions ---
21 file1 [u::r-x,g::---,o::---]
22 Expect to PASS
23 Test was executed
24 Expect to FAIL
25 ./file1: Permission denied
26
27 --- Test group permissions ---
28 file1 [u::---,g::r-x,o::---]
29 Expect to FAIL - acl1 is owner
30 ./file1: Permission denied
31 Expect to PASS - acl2 matches group
32 Test was executed
33 Expect to PASS - acl2 matches sup group
34 Test was executed
35 Expect to FAIL - acl3 is not in group
36 ./file1: Permission denied
37
38 --- Test other permissions ---
39 file1 [u::---,g::---,o::r-x]
40 Expect to FAIL - acl1 is owner
41 ./file1: Permission denied
42 Expect to FAIL - acl2 is in group
43 ./file1: Permission denied
44 Expect to FAIL - acl2 is in sup. group
45 ./file1: Permission denied
46 Expect to PASS - acl3 is not owner or in group
47 Test was executed
48
49 === Test Extended ACLs ===
50
51 --- Test adding a USER ACE ---
52 Expect to FAIL as no MASK provided
53 chacl: access ACL 'u::---,g::---,o::---,u:id2:r-x': Missing or wrong entry at entry 3
54 Ensure that ACL has not been changed
55 file1 [u::---,g::---,o::r-x]
56 Expect to PASS - USER ACE matches user
57 file1 [u::---,u:id2:r-x,g::---,m::rwx,o::---]
58 Test was executed
59 Expect to FAIL - USER ACE does not match user
60 ./file1: Permission denied
61
62 --- Test adding a GROUP ACE ---
63 Expect to FAIL as no MASK provided
64 chacl: access ACL 'u::---,g::---,o::---,g:id2:r-x': Missing or wrong entry at entry 3
65 Ensure that ACL has not been changed
66 file1 [u::---,u:id2:r-x,g::---,m::rwx,o::---]
67 file1 [u::---,g::---,g:id2:r-x,m::rwx,o::---]
68 Expect to PASS - GROUP ACE matches group
69 Test was executed
70 Expect to PASS - GROUP ACE matches sup group
71 Test was executed
72 Expect to FAIL - GROUP ACE does not match group
73 ./file1: Permission denied
74
75 --- Test MASK ---
76 file1 [u::---,g::---,g:id2:r-x,m::-w-,o::---]
77 Expect to FAIL as MASK prohibits execution
78 ./file1: Permission denied
79 Expect to FAIL as MASK prohibits execution
80 ./file1: Permission denied
81 Expect to PASS as MASK allows execution
82 Test was executed
83
84 --- Test ACE priority ---
85 Expect to FAIL as should match on owner
86 ./file1: Permission denied
87 Expect to PASS as should match on user
88 Test was executed
89
90 === Test can read ACLs without access permissions ===
91 file1 [u::---,g::---,o::---]
92
93 === Test Default ACLs ===
94 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
95 -r--r----- 0 0 file2
96 file2 [u::r--,g::r--,o::---]
97 -r--r----- 0 0 file3
98 file3 [u::r--,g::r--,o::---]
99
100 === Removing ACLs ===
101 file1 [u::---,g::---,o::---]
102 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
103 acldir/file2 [u::r--,g::r--,o::---]
104 Remove ACLs...
105 Note: Old interface would mean empty ACLs - now we show mode ACLs
106 file1 [u::---,g::---,o::---]
107 acldir [u::rwx,g::rwx,o::rwx]
108 acldir/file2 [u::r--,g::r--,o::---]
109
110 === Recursive change ACL ===
111 Change #1...
112 root [u::rwx,g::-w-,o::--x]
113 root/a [u::rwx,g::-w-,o::--x]
114 root/a/1 [u::rwx,g::-w-,o::--x]
115 root/a/1/mumble [u::rwx,g::-w-,o::--x]
116 root/a/2 [u::rwx,g::-w-,o::--x]
117 root/a/2/mumble [u::rwx,g::-w-,o::--x]
118 root/a/3 [u::rwx,g::-w-,o::--x]
119 root/a/3/mumble [u::rwx,g::-w-,o::--x]
120 root/a/4 [u::rwx,g::-w-,o::--x]
121 root/a/4/mumble [u::rwx,g::-w-,o::--x]
122 root/a/5 [u::rwx,g::-w-,o::--x]
123 root/a/5/mumble [u::rwx,g::-w-,o::--x]
124 root/a/6 [u::rwx,g::-w-,o::--x]
125 root/a/6/mumble [u::rwx,g::-w-,o::--x]
126 root/a/7 [u::rwx,g::-w-,o::--x]
127 root/a/7/mumble [u::rwx,g::-w-,o::--x]
128 root/a/8 [u::rwx,g::-w-,o::--x]
129 root/a/8/mumble [u::rwx,g::-w-,o::--x]
130 root/a/9 [u::rwx,g::-w-,o::--x]
131 root/a/9/mumble [u::rwx,g::-w-,o::--x]
132 root/a/0 [u::rwx,g::-w-,o::--x]
133 root/a/0/mumble [u::rwx,g::-w-,o::--x]
134 root/b [u::rwx,g::-w-,o::--x]
135 root/b/c1 [u::rwx,g::-w-,o::--x]
136 root/b/c1/1 [u::rwx,g::-w-,o::--x]
137 root/b/c2 [u::rwx,g::-w-,o::--x]
138 root/b/c2/2 [u::rwx,g::-w-,o::--x]
139 root/b/c3 [u::rwx,g::-w-,o::--x]
140 root/b/c3/3 [u::rwx,g::-w-,o::--x]
141 root/b/c4 [u::rwx,g::-w-,o::--x]
142 root/b/c4/4 [u::rwx,g::-w-,o::--x]
143 root/b/c5 [u::rwx,g::-w-,o::--x]
144 root/b/c5/5 [u::rwx,g::-w-,o::--x]
145 root/b/c6 [u::rwx,g::-w-,o::--x]
146 root/b/c6/6 [u::rwx,g::-w-,o::--x]
147 root/b/c7 [u::rwx,g::-w-,o::--x]
148 root/b/c7/7 [u::rwx,g::-w-,o::--x]
149 root/b/c8 [u::rwx,g::-w-,o::--x]
150 root/b/c8/8 [u::rwx,g::-w-,o::--x]
151 root/b/c9 [u::rwx,g::-w-,o::--x]
152 root/b/c9/9 [u::rwx,g::-w-,o::--x]
153 root/b/c0 [u::rwx,g::-w-,o::--x]
154 root/b/c0/0 [u::rwx,g::-w-,o::--x]
155 Change #2...
156 root [u::---,g::---,o::---]
157 root/a [u::---,g::---,o::---]
158 root/a/1 [u::---,g::---,o::---]
159 root/a/1/mumble [u::---,g::---,o::---]
160 root/a/2 [u::---,g::---,o::---]
161 root/a/2/mumble [u::---,g::---,o::---]
162 root/a/3 [u::---,g::---,o::---]
163 root/a/3/mumble [u::---,g::---,o::---]
164 root/a/4 [u::---,g::---,o::---]
165 root/a/4/mumble [u::---,g::---,o::---]
166 root/a/5 [u::---,g::---,o::---]
167 root/a/5/mumble [u::---,g::---,o::---]
168 root/a/6 [u::---,g::---,o::---]
169 root/a/6/mumble [u::---,g::---,o::---]
170 root/a/7 [u::---,g::---,o::---]
171 root/a/7/mumble [u::---,g::---,o::---]
172 root/a/8 [u::---,g::---,o::---]
173 root/a/8/mumble [u::---,g::---,o::---]
174 root/a/9 [u::---,g::---,o::---]
175 root/a/9/mumble [u::---,g::---,o::---]
176 root/a/0 [u::---,g::---,o::---]
177 root/a/0/mumble [u::---,g::---,o::---]
178 root/b [u::---,g::---,o::---]
179 root/b/c1 [u::---,g::---,o::---]
180 root/b/c1/1 [u::---,g::---,o::---]
181 root/b/c2 [u::---,g::---,o::---]
182 root/b/c2/2 [u::---,g::---,o::---]
183 root/b/c3 [u::---,g::---,o::---]
184 root/b/c3/3 [u::---,g::---,o::---]
185 root/b/c4 [u::---,g::---,o::---]
186 root/b/c4/4 [u::---,g::---,o::---]
187 root/b/c5 [u::---,g::---,o::---]
188 root/b/c5/5 [u::---,g::---,o::---]
189 root/b/c6 [u::---,g::---,o::---]
190 root/b/c6/6 [u::---,g::---,o::---]
191 root/b/c7 [u::---,g::---,o::---]
192 root/b/c7/7 [u::---,g::---,o::---]
193 root/b/c8 [u::---,g::---,o::---]
194 root/b/c8/8 [u::---,g::---,o::---]
195 root/b/c9 [u::---,g::---,o::---]
196 root/b/c9/9 [u::---,g::---,o::---]
197 root/b/c0 [u::---,g::---,o::---]
198 root/b/c0/0 [u::---,g::---,o::---]
199
200 === Test out error messages for ACL text parsing  ===
201 Note: Old interface gave more informative error msgs
202 + chacl u file1
203 chacl: u - Invalid argument
204 + chacl u: file1
205 chacl: u: - Invalid argument
206 + chacl u:rumpledumpleunknownuser file1
207 chacl: u:rumpledumpleunknownuser - Invalid argument
208 + chacl u:rumpledumpleunknownuser: file1
209 chacl: u:rumpledumpleunknownuser: - Invalid argument
210 + chacl g:rumpledumpleunknowngrp file1
211 chacl: g:rumpledumpleunknowngrp - Invalid argument
212 + chacl g:rumpledumpleunknowngrp: file1
213 chacl: g:rumpledumpleunknowngrp: - Invalid argument
214 + chacl o:user1:rwx file1
215 chacl: o:user1:rwx - Invalid argument
216 + chacl m:user1:rwx file1
217 chacl: m:user1:rwx - Invalid argument
218 + chacl a::rwx file1
219 chacl: a::rwx - Invalid argument
220 + set +x
221
222 === Test out large ACLs  ===
223 1 below xfs acl max
224 # file: largeaclfile
225 # owner: root
226 # group: root
227 user::rwx
228 user:1:rwx
229 user:2:rwx
230 user:3:rwx
231 user:4:rwx
232 user:5:rwx
233 user:6:rwx
234 user:7:rwx
235 user:8:rwx
236 user:9:rwx
237 user:10:rwx
238 user:11:rwx
239 user:12:rwx
240 user:13:rwx
241 user:14:rwx
242 user:15:rwx
243 user:16:rwx
244 user:17:rwx
245 user:18:rwx
246 user:19:rwx
247 user:20:rwx
248 group::rwx
249 mask::rwx
250 other::rwx
251
252 xfs acl max
253 # file: largeaclfile
254 # owner: root
255 # group: root
256 user::rwx
257 user:1:rwx
258 user:2:rwx
259 user:3:rwx
260 user:4:rwx
261 user:5:rwx
262 user:6:rwx
263 user:7:rwx
264 user:8:rwx
265 user:9:rwx
266 user:10:rwx
267 user:11:rwx
268 user:12:rwx
269 user:13:rwx
270 user:14:rwx
271 user:15:rwx
272 user:16:rwx
273 user:17:rwx
274 user:18:rwx
275 user:19:rwx
276 user:20:rwx
277 user:21:rwx
278 group::rwx
279 mask::rwx
280 other::rwx
281
282 1 above xfs acl max
283 chacl: cannot set access acl on "largeaclfile": Invalid argument
284 # file: largeaclfile
285 # owner: root
286 # group: root
287 user::rwx
288 user:1:rwx
289 user:2:rwx
290 user:3:rwx
291 user:4:rwx
292 user:5:rwx
293 user:6:rwx
294 user:7:rwx
295 user:8:rwx
296 user:9:rwx
297 user:10:rwx
298 user:11:rwx
299 user:12:rwx
300 user:13:rwx
301 user:14:rwx
302 user:15:rwx
303 user:16:rwx
304 user:17:rwx
305 user:18:rwx
306 user:19:rwx
307 user:20:rwx
308 user:21:rwx
309 group::rwx
310 mask::rwx
311 other::rwx
312
313 use 16 aces
314 # file: largeaclfile
315 # owner: root
316 # group: root
317 user::rwx
318 user:1:rwx
319 user:2:rwx
320 user:3:rwx
321 user:4:rwx
322 user:5:rwx
323 user:6:rwx
324 user:7:rwx
325 user:8:rwx
326 user:9:rwx
327 user:10:rwx
328 user:11:rwx
329 user:12:rwx
330 group::rwx
331 mask::rwx
332 other::rwx
333
334 use 17 aces
335 # file: largeaclfile
336 # owner: root
337 # group: root
338 user::rwx
339 user:1:rwx
340 user:2:rwx
341 user:3:rwx
342 user:4:rwx
343 user:5:rwx
344 user:6:rwx
345 user:7:rwx
346 user:8:rwx
347 user:9:rwx
348 user:10:rwx
349 user:11:rwx
350 user:12:rwx
351 user:13:rwx
352 group::rwx
353 mask::rwx
354 other::rwx
355