mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Test default ACLs with particular umasks instead of
relying on a default umask. Updated for pv#820248.
This commit is contained in:
@@ -259,15 +259,28 @@ chacl -l file1 | _acl_filter_id
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== Test Default ACLs ==="
|
echo "=== Test Default ACLs ==="
|
||||||
|
# make test clearer by testing with and without umask
|
||||||
|
umask 0
|
||||||
|
|
||||||
mkdir acldir
|
mkdir acldir
|
||||||
chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir 2>&1
|
chacl -b "u::rwx,g::rwx,o::rwx" "u::r-x,g::r--,o::---" acldir 2>&1
|
||||||
chacl -l acldir | _acl_filter_id
|
chacl -l acldir | _acl_filter_id
|
||||||
|
|
||||||
cd acldir
|
cd acldir
|
||||||
|
|
||||||
touch file2
|
touch file2
|
||||||
_acl_ls file2
|
_acl_ls file2
|
||||||
chacl -l file2 | _acl_filter_id
|
chacl -l file2 | _acl_filter_id
|
||||||
|
|
||||||
|
#ensure that umask is not having an effect
|
||||||
|
#so set it and see
|
||||||
|
umask 722
|
||||||
|
touch file3
|
||||||
|
_acl_ls file3
|
||||||
|
chacl -l file3 | _acl_filter_id
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
umask 022
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------
|
#-------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ file1 [o::---,g::---,u::---]
|
|||||||
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
|
-r--r----- 0 0 file2
|
||||||
file2 [u::r--,g::r--,o::---]
|
file2 [u::r--,g::r--,o::---]
|
||||||
|
-r--r----- 0 0 file3
|
||||||
|
file3 [u::r--,g::r--,o::---]
|
||||||
|
|
||||||
=== Removing ACLs ===
|
=== Removing ACLs ===
|
||||||
file1 [o::---,g::---,u::---]
|
file1 [o::---,g::---,u::---]
|
||||||
|
|||||||
Reference in New Issue
Block a user