mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Choose new uid/gid and filter them appropriately.
This commit is contained in:
@@ -2,7 +2,7 @@ QA output created by 051
|
||||
|
||||
=== Test minimal ACE ===
|
||||
Setup file
|
||||
-rwxrw-r-- 1001 1002 file1
|
||||
-rwxrw-r-- id1 id2 file1
|
||||
|
||||
--- Test get and set of ACL ---
|
||||
file1 []
|
||||
@@ -12,8 +12,8 @@ Expect to PASS
|
||||
file1 [u::r--,g::rwx,o::rw-]
|
||||
|
||||
--- Test sync of ACL with std permissions ---
|
||||
-r--rwxrw- 1001 1002 file1
|
||||
-rw-rwxrw- 1001 1002 file1
|
||||
-r--rwxrw- id1 id2 file1
|
||||
-rw-rwxrw- id1 id2 file1
|
||||
file1 [u::rw-,g::rwx,o::rw-]
|
||||
|
||||
--- Test owner permissions ---
|
||||
@@ -53,7 +53,7 @@ chacl: error setting access acl on "file1": Invalid argument
|
||||
Ensure that ACL has not been changed
|
||||
file1 [u::---,g::---,o::r-x]
|
||||
Expect to PASS - USER ACE matches user
|
||||
file1 [u::---,g::---,o::---,u:1002:r-x,m::rwx]
|
||||
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
|
||||
Test was executed
|
||||
Expect to FAIL - USER ACE does not match user
|
||||
sh: ./file1: Permission denied
|
||||
@@ -62,8 +62,8 @@ sh: ./file1: Permission denied
|
||||
Expect to FAIL as no MASK provided
|
||||
chacl: error setting access acl on "file1": Invalid argument
|
||||
Ensure that ACL has not been changed
|
||||
file1 [u::---,g::---,o::---,u:1002:r-x,m::rwx]
|
||||
file1 [u::---,g::---,o::---,g:1002:r-x,m::rwx]
|
||||
file1 [u::---,g::---,o::---,u:id2:r-x,m::rwx]
|
||||
file1 [u::---,g::---,o::---,g:id2:r-x,m::rwx]
|
||||
Expect to PASS - GROUP ACE matches group
|
||||
Test was executed
|
||||
Expect to PASS - GROUP ACE matches sup group
|
||||
@@ -72,7 +72,7 @@ Expect to FAIL - GROUP ACE does not match group
|
||||
sh: ./file1: Permission denied
|
||||
|
||||
--- Test MASK ---
|
||||
file1 [u::---,g::---,o::---,g:1002:r-x,m::-wx]
|
||||
file1 [u::---,g::---,o::---,g:id2:r-x,m::-wx]
|
||||
Expect to FAIL as MASK prohibits execution
|
||||
./file1: ./file1: Permission denied
|
||||
Expect to FAIL as MASK prohibits execution
|
||||
@@ -87,9 +87,9 @@ Expect to PASS as should match on user
|
||||
Test was executed
|
||||
|
||||
=== Test can read ACLs without access permissions ===
|
||||
./file1 [o::---,g::---,u::---]
|
||||
file1 [o::---,g::---,u::---]
|
||||
|
||||
=== Test Default ACLs ===
|
||||
./acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
|
||||
acldir [u::rwx,g::rwx,o::rwx/u::r-x,g::r--,o::---]
|
||||
-r--r----- 0 0 file2
|
||||
./file2 [u::r--,g::r--,o::---]
|
||||
file2 [u::r--,g::r--,o::---]
|
||||
|
||||
Reference in New Issue
Block a user