On 5/5/20 3:21 PM, Eric Sandeen wrote: > This tests the fs.protected_regular and fs.protected_fifos > sysctls which restrict access behavior in sticky world-writable > directories as documented in the kernel at > Documentation/admin-guide/sysctl/fs.rst > > Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> Actually, I'm going to self-nak this one, sorry; this bit - > + # "open -f" opens O_CREAT > + result=`sudo -u $USER2 $XFS_IO_PROG -c "open -f $TEST_DIR/$seq/sticky_dir/$FILENAME" 2>&1` \ > + && echo "successfully opened $FILENAME" \ > + || echo $result | _filter_test_dir depends on xfs_io exiting nonzero on a failure and that was only recently fixed; I'll come up with a test that's more robust and send a V2. -Eric