Merge of xfs-cmds-2.4.18:slinx:111985a by nathans.
[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 file1 []
9 Expect to FAIL
10 chacl: "u::r--,g::rwx,o:rw-" is an invalid ACL specification.
11 cannot find permission separator after char ":" (position 16)
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: "u::---,g::---,o::---,u:id2:r-x" is an invalid ACL specification.
54 mask required and no mask
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: "u::---,g::---,o::---,g:id2:r-x" is an invalid ACL specification.
66 mask required and no mask
67 Ensure that ACL has not been changed
68 file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
69 file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
70 Expect to PASS - GROUP ACE matches group
71 Test was executed
72 Expect to PASS - GROUP ACE matches sup group
73 Test was executed
74 Expect to FAIL - GROUP ACE does not match group
75 ./file1: Permission denied
76
77 --- Test MASK ---
78 file1 [u::---,g::---,o::---,g:id2:r-x,m::-w-]
79 Expect to FAIL as MASK prohibits execution
80 ./file1: Permission denied
81 Expect to FAIL as MASK prohibits execution
82 ./file1: Permission denied
83 Expect to PASS as MASK allows execution
84 Test was executed
85
86 --- Test ACE priority ---
87 Expect to FAIL as should match on owner
88 ./file1: Permission denied
89 Expect to PASS as should match on user
90 Test was executed
91
92 === Test can read ACLs without access permissions ===
93 file1 [o::---,g::---,u::---]
94
95 === Test Default ACLs ===
96 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
97 -r--r----- 0 0 file2
98 file2 [u::r--,g::r--,o::---]
99 -r--r----- 0 0 file3
100 file3 [u::r--,g::r--,o::---]
101
102 === Removing ACLs ===
103 file1 [o::---,g::---,u::---]
104 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
105 acldir/file2 [u::r--,g::r--,o::---]
106 Remove ACLs...
107 file1 []
108 acldir []
109 acldir/file2 []
110
111 === Recursive change ACL ===
112 Change #1...
113 root [u::rwx,g::-w-,o::--x]
114 root/a [u::rwx,g::-w-,o::--x]
115 root/a/1 [u::rwx,g::-w-,o::--x]
116 root/a/1/mumble [u::rwx,g::-w-,o::--x]
117 root/a/2 [u::rwx,g::-w-,o::--x]
118 root/a/2/mumble [u::rwx,g::-w-,o::--x]
119 root/a/3 [u::rwx,g::-w-,o::--x]
120 root/a/3/mumble [u::rwx,g::-w-,o::--x]
121 root/a/4 [u::rwx,g::-w-,o::--x]
122 root/a/4/mumble [u::rwx,g::-w-,o::--x]
123 root/a/5 [u::rwx,g::-w-,o::--x]
124 root/a/5/mumble [u::rwx,g::-w-,o::--x]
125 root/a/6 [u::rwx,g::-w-,o::--x]
126 root/a/6/mumble [u::rwx,g::-w-,o::--x]
127 root/a/7 [u::rwx,g::-w-,o::--x]
128 root/a/7/mumble [u::rwx,g::-w-,o::--x]
129 root/a/8 [u::rwx,g::-w-,o::--x]
130 root/a/8/mumble [u::rwx,g::-w-,o::--x]
131 root/a/9 [u::rwx,g::-w-,o::--x]
132 root/a/9/mumble [u::rwx,g::-w-,o::--x]
133 root/a/0 [u::rwx,g::-w-,o::--x]
134 root/a/0/mumble [u::rwx,g::-w-,o::--x]
135 root/b [u::rwx,g::-w-,o::--x]
136 root/b/c1 [u::rwx,g::-w-,o::--x]
137 root/b/c1/1 [u::rwx,g::-w-,o::--x]
138 root/b/c2 [u::rwx,g::-w-,o::--x]
139 root/b/c2/2 [u::rwx,g::-w-,o::--x]
140 root/b/c3 [u::rwx,g::-w-,o::--x]
141 root/b/c3/3 [u::rwx,g::-w-,o::--x]
142 root/b/c4 [u::rwx,g::-w-,o::--x]
143 root/b/c4/4 [u::rwx,g::-w-,o::--x]
144 root/b/c5 [u::rwx,g::-w-,o::--x]
145 root/b/c5/5 [u::rwx,g::-w-,o::--x]
146 root/b/c6 [u::rwx,g::-w-,o::--x]
147 root/b/c6/6 [u::rwx,g::-w-,o::--x]
148 root/b/c7 [u::rwx,g::-w-,o::--x]
149 root/b/c7/7 [u::rwx,g::-w-,o::--x]
150 root/b/c8 [u::rwx,g::-w-,o::--x]
151 root/b/c8/8 [u::rwx,g::-w-,o::--x]
152 root/b/c9 [u::rwx,g::-w-,o::--x]
153 root/b/c9/9 [u::rwx,g::-w-,o::--x]
154 root/b/c0 [u::rwx,g::-w-,o::--x]
155 root/b/c0/0 [u::rwx,g::-w-,o::--x]
156 Change #2...
157 root [u::---,g::---,o::---]
158 root/a [u::---,g::---,o::---]
159 root/a/1 [u::---,g::---,o::---]
160 root/a/1/mumble [u::---,g::---,o::---]
161 root/a/2 [u::---,g::---,o::---]
162 root/a/2/mumble [u::---,g::---,o::---]
163 root/a/3 [u::---,g::---,o::---]
164 root/a/3/mumble [u::---,g::---,o::---]
165 root/a/4 [u::---,g::---,o::---]
166 root/a/4/mumble [u::---,g::---,o::---]
167 root/a/5 [u::---,g::---,o::---]
168 root/a/5/mumble [u::---,g::---,o::---]
169 root/a/6 [u::---,g::---,o::---]
170 root/a/6/mumble [u::---,g::---,o::---]
171 root/a/7 [u::---,g::---,o::---]
172 root/a/7/mumble [u::---,g::---,o::---]
173 root/a/8 [u::---,g::---,o::---]
174 root/a/8/mumble [u::---,g::---,o::---]
175 root/a/9 [u::---,g::---,o::---]
176 root/a/9/mumble [u::---,g::---,o::---]
177 root/a/0 [u::---,g::---,o::---]
178 root/a/0/mumble [u::---,g::---,o::---]
179 root/b [u::---,g::---,o::---]
180 root/b/c1 [u::---,g::---,o::---]
181 root/b/c1/1 [u::---,g::---,o::---]
182 root/b/c2 [u::---,g::---,o::---]
183 root/b/c2/2 [u::---,g::---,o::---]
184 root/b/c3 [u::---,g::---,o::---]
185 root/b/c3/3 [u::---,g::---,o::---]
186 root/b/c4 [u::---,g::---,o::---]
187 root/b/c4/4 [u::---,g::---,o::---]
188 root/b/c5 [u::---,g::---,o::---]
189 root/b/c5/5 [u::---,g::---,o::---]
190 root/b/c6 [u::---,g::---,o::---]
191 root/b/c6/6 [u::---,g::---,o::---]
192 root/b/c7 [u::---,g::---,o::---]
193 root/b/c7/7 [u::---,g::---,o::---]
194 root/b/c8 [u::---,g::---,o::---]
195 root/b/c8/8 [u::---,g::---,o::---]
196 root/b/c9 [u::---,g::---,o::---]
197 root/b/c9/9 [u::---,g::---,o::---]
198 root/b/c0 [u::---,g::---,o::---]
199 root/b/c0/0 [u::---,g::---,o::---]
200
201 === Test out error messages for ACL text parsing  ===
202 + chacl u file1
203 chacl: "u" is an invalid ACL specification.
204 could not find qualifier separator after tag "u"
205 + chacl u: file1
206 chacl: "u:" is an invalid ACL specification.
207 cannot find permission separator after char ":" (position 2)
208 + chacl u:rumpledumpleunknownuser file1
209 chacl: "u:rumpledumpleunknownuser" is an invalid ACL specification.
210 cannot find permission separator after char ":" (position 2)
211 + chacl u:rumpledumpleunknownuser: file1
212 chacl: "u:rumpledumpleunknownuser:" is an invalid ACL specification.
213 cannot find user "rumpledumpleunknownuser"
214 + chacl g:rumpledumpleunknowngrp file1
215 chacl: "g:rumpledumpleunknowngrp" is an invalid ACL specification.
216 cannot find permission separator after char ":" (position 2)
217 + chacl g:rumpledumpleunknowngrp: file1
218 chacl: "g:rumpledumpleunknowngrp:" is an invalid ACL specification.
219 cannot find group "rumpledumpleunknowngrp"
220 + chacl o:user1:rwx file1
221 chacl: "o:user1:rwx" is an invalid ACL specification.
222 garbage after other tag: "user1"
223 + chacl m:user1:rwx file1
224 chacl: "m:user1:rwx" is an invalid ACL specification.
225 garbage after mask tag: "user1"
226 + chacl a::rwx file1
227 chacl: "a::rwx" is an invalid ACL specification.
228 invalid tag: "a"
229 + set +x