make sure we have a standard umask for each test (022).
[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 Expect to PASS
12 file1 [u::r--,g::rwx,o::rw-]
13
14 --- Test sync of ACL with std permissions ---
15 -r--rwxrw- id1 id2 file1
16 -rw-rwxrw- id1 id2 file1
17 file1 [u::rw-,g::rwx,o::rw-]
18
19 --- Test owner permissions ---
20 file1 [u::r-x,g::---,o::---]
21 Expect to PASS
22 Test was executed
23 Expect to FAIL
24 ./file1: Permission denied
25
26 --- Test group permissions ---
27 file1 [u::---,g::r-x,o::---]
28 Expect to FAIL - acl1 is owner
29 ./file1: Permission denied
30 Expect to PASS - acl2 matches group
31 Test was executed
32 Expect to PASS - acl2 matches sup group
33 Test was executed
34 Expect to FAIL - acl3 is not in group
35 ./file1: Permission denied
36
37 --- Test other permissions ---
38 file1 [u::---,g::---,o::r-x]
39 Expect to FAIL - acl1 is owner
40 ./file1: Permission denied
41 Expect to FAIL - acl2 is in group
42 ./file1: Permission denied
43 Expect to FAIL - acl2 is in sup. group
44 ./file1: Permission denied
45 Expect to PASS - acl3 is not owner or in group
46 Test was executed
47
48 === Test Extended ACLs ===
49
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:id2:r-x,m::rwx]
57 Test was executed
58 Expect to FAIL - USER ACE does not match user
59 ./file1: Permission denied
60
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:id2:r-x,m::rwx]
66 file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
67 Expect to PASS - GROUP ACE matches group
68 Test was executed
69 Expect to PASS - GROUP ACE matches sup group
70 Test was executed
71 Expect to FAIL - GROUP ACE does not match group
72 ./file1: Permission denied
73
74 --- Test MASK ---
75 file1 [u::---,g::---,o::---,g:id2:r-x,m::-w-]
76 Expect to FAIL as MASK prohibits execution
77 ./file1: Permission denied
78 Expect to FAIL as MASK prohibits execution
79 ./file1: Permission denied
80 Expect to PASS as MASK allows execution
81 Test was executed
82
83 --- Test ACE priority ---
84 Expect to FAIL as should match on owner
85 ./file1: Permission denied
86 Expect to PASS as should match on user
87 Test was executed
88
89 === Test can read ACLs without access permissions ===
90 file1 [o::---,g::---,u::---]
91
92 === Test Default ACLs ===
93 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
94 -r--r----- 0 0 file2
95 file2 [u::r--,g::r--,o::---]
96 -r--r----- 0 0 file3
97 file3 [u::r--,g::r--,o::---]
98
99 === Removing ACLs ===
100 file1 [o::---,g::---,u::---]
101 acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
102 acldir/file2 [u::r--,g::r--,o::---]
103 Remove ACLs...
104 file1 []
105 acldir []
106 acldir/file2 []