4 desc="NFSv4 granular permissions checking - ACL_READ_ATTRIBUTES and ACL_WRITE_ATTRIBUTES"
9 [ "${os}:${fs}" = "FreeBSD:ZFS" ] || quick_exit
17 expect 0 mkdir ${n2} 0755
21 # Tests 1..12 - check out whether user 65534 is permitted to read attributes.
22 expect 0 create ${n0} 0644
23 expect 0 lstat ${n0} size
24 expect 0 -u 65534 -g 65534 stat ${n0} size
25 expect 0 prependacl ${n0} user:65534:read_attributes::deny
26 expect 0 lstat ${n0} size
27 expect EACCES -u 65534 -g 65534 stat ${n0} size
28 expect 0 prependacl ${n0} user:65534:read_attributes::allow
29 expect 0 -u 65534 -g 65534 stat ${n0} size
30 expect 0 lstat ${n0} size
33 # Tests 12..12 - check out whether user 65534 is permitted to write attributes.
34 # XXX: Check if ACL_WRITE_ATTRIBUTES allows for modifying access times.