]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Better handle filesystems mounted with -o noexec
authorngie <ngie@FreeBSD.org>
Sat, 12 Mar 2016 19:41:38 +0000 (19:41 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 12 Mar 2016 19:41:38 +0000 (19:41 +0000)
commit7888d5e7540a2f6ba2d43fd030d1b9a645fd1b2a
treef3a5101bd12bd2ae43dfad46b7ca209f1712b708
parent9d989258128bd09f363394aaa3b50067f2c9c197
Better handle filesystems mounted with -o noexec

ftruncate/11, open/20, and truncate/11 copy sleep(1) to a temporary file on the
target filesystem, execute the binary, then expect a result. This doesn't work
with scenarios where the target binary cannot be executed, e.g. the filesystem
was mounted with -o noexec.

Ensure the filesystem hasn't been mounted with -o noexec for the testcases
before executing them.

Differential Revision: https://reviews.freebsd.org/D5622
MFC after: 1 week
Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division
contrib/pjdfstest/tests/ftruncate/11.t
contrib/pjdfstest/tests/misc.sh
contrib/pjdfstest/tests/open/20.t
contrib/pjdfstest/tests/truncate/11.t