8 setfacl
-d -m u
:nobody
:rw .
10 echo "Filesystem does not support ACL"
15 if "$@"; then return 1; else return 0; fi
23 # inherited ACL from parent directory's default ACL
25 c1
=`getfacl d1 | grep -c "nobody:rw"`
26 echo 3 | sudo
tee /proc
/sys
/vm
/drop_caches
> /dev
/null
27 c2
=`getfacl d1 | grep -c "nobody:rw"`
29 if [ $c1 -ne 2 ] ||
[ $c2 -ne 2 ]
31 echo "ERROR: incorrect ACLs"
38 # The ACL xattr only contains ACL header. ACL should be removed
40 setfattr
-n system.posix_acl_access
-v 0x02000000 d1
41 setfattr
-n system.posix_acl_default
-v 0x02000000 .
43 expect_failure getfattr
-n system.posix_acl_access d1
44 expect_failure getfattr
-n system.posix_acl_default .