40a8ac8f62
- Remove tools/regression/pjdfstest - Add upgrade directions for contrib/pjdfstest - Add a note to UPDATING for the move (the reachover Makefiles are coming soon) Functional differences: - ftruncate testcases are added from upstream (github) Non-functional differences: - The copyright for the project has been updated to 2012 - pjd's contact information has been updated Discussed with: -testing, jmmv, pjd MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
#!/bin/sh
|
|
# $FreeBSD: head/tools/regression/pjdfstest/tests/granular/01.t 211352 2010-08-15 21:24:17Z pjd $
|
|
|
|
desc="NFSv4 granular permissions checking - ACL_READ_ATTRIBUTES and ACL_WRITE_ATTRIBUTES"
|
|
|
|
dir=`dirname $0`
|
|
. ${dir}/../misc.sh
|
|
|
|
[ "${os}:${fs}" = "FreeBSD:ZFS" ] || quick_exit
|
|
|
|
echo "1..12"
|
|
|
|
n0=`namegen`
|
|
n1=`namegen`
|
|
n2=`namegen`
|
|
|
|
expect 0 mkdir ${n2} 0755
|
|
cdir=`pwd`
|
|
cd ${n2}
|
|
|
|
# Tests 1..12 - check out whether user 65534 is permitted to read attributes.
|
|
expect 0 create ${n0} 0644
|
|
expect 0 lstat ${n0} size
|
|
expect 0 -u 65534 -g 65534 stat ${n0} size
|
|
expect 0 prependacl ${n0} user:65534:read_attributes::deny
|
|
expect 0 lstat ${n0} size
|
|
expect EACCES -u 65534 -g 65534 stat ${n0} size
|
|
expect 0 prependacl ${n0} user:65534:read_attributes::allow
|
|
expect 0 -u 65534 -g 65534 stat ${n0} size
|
|
expect 0 lstat ${n0} size
|
|
expect 0 unlink ${n0}
|
|
|
|
# Tests 12..12 - check out whether user 65534 is permitted to write attributes.
|
|
# XXX: Check if ACL_WRITE_ATTRIBUTES allows for modifying access times.
|
|
|
|
cd ${cdir}
|
|
expect 0 rmdir ${n2}
|