Richacl Tests
PATCH v2 1/6 check: Don't complain about missing tests/$FSTYP/group
In reply to Andreas GruenbacherWhen filesystems don't have filesystem specific tests, those nonexistent tests also won't have a group file.
--- check | 2 ++ 1 file changed, 2 insertions(+)
check +2 -0
@@ -95,6 +95,8 @@ get_group_list() grp=$1 for d in $SRC_GROUPS $FSTYP; do + [ -e "$SRC_DIR/$d/group" ] || continue + l=$(sed -n < $SRC_DIR/$d/group \ -e 's/#.*//' \ -e 's/$/ /' \
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
v2 cover Richacl Tests
Here is an updated version that mainly removes the -richacl option from the check script and leaves that to users. The richacl tests will be skipped on non-richacl filesystems.
The richacl tests are "self verifying": they report success or failure through their exit code and don't have "golden" output files (*.out).
Previous posting: http://comments.gmane.org/gmane.comp.file-systems.xfs.general/71302
Andreas Gruenbacher (6):
check: Don't complain about missing tests/$FSTYP/group
check: Enforce xfs filesystem recreation on $TEST_DEV Rename output file templates to match TEST.out*
check: Add support for tests without *.out files Add richacl tests
Remove the obsolete nfs4acl tests
.gitignore | 17 ++ check | 81 +++++---- common/rc | 3 + nfs4acl/Makefile | 29 ---- nfs4acl/apply-mask.test | 143 ---------------- nfs4acl/basic.test | 70 -------- nfs4acl/chmod.test | 31 ---- nfs4acl/chown.test | 63 ------- nfs4acl/computed-mode.test | 62 ------- nfs4acl/create.test | 35 ---- nfs4acl/ctime.test | 36 ---- nfs4acl/delete.test | 77 --------- nfs4acl/run | 298 --------------------------------- nfs4acl/unrepresentable.test | 20 --- nfs4acl/write-vs-append.test | 46 ----- src/Makefile | 2 +- src/require-richacls.c | 35 ++++ tests/richacl/001-apply-masks | 1 + tests/richacl/002-auto-inheritance | 1 + tests/richacl/003-basic | 1 + tests/richacl/004-chmod | 1 + tests/richacl/005-chown | 1 + tests/richacl/006-create | 1 + tests/richacl/007-ctime | 1 + tests/richacl/008-delete | 1 + tests/richacl/009-setrichacl-modify | 1 + tests/richacl/010-write-vs-append | 1 + tests/richacl/Makefile | 23 +++ tests/richacl/apply-masks | 163 ++++++++++++++++++ tests/richacl/auto-inheritance | 191 +++++++++++++++++++++ tests/richacl/basic | 97 +++++++++++ tests/richacl/chmod | 40 +++++ tests/richacl/chown | 42 +++++ tests/richacl/create | 36 ++++ tests/richacl/ctime | 35 ++++ tests/richacl/delete | 89 ++++++++++ tests/richacl/group | 10 ++ tests/richacl/setrichacl-modify | 57 +++++++ tests/richacl/test-lib.sh | 149 +++++++++++++++++ tests/richacl/write-vs-append | 54 ++++++ tests/xfs/033 | 2 +- tests/xfs/033.crc.out.linux | 197 ---------------------- tests/xfs/033.out.crc.linux | 197 ++++++++++++++++++++++ tests/xfs/096 | 4 +- tests/xfs/096.external | 50 ------ tests/xfs/096.internal | 51 ------ tests/xfs/096.out.external | 50 ++++++ tests/xfs/096.out.internal | 51 ++++++ tests/xfs/191 | 75 --------- tests/xfs/191.out | 324 ------------------------------------ tests/xfs/group | 1 - 51 files changed, 1406 insertions(+), 1640 deletions(-) delete mode 100644 nfs4acl/Makefile delete mode 100644 nfs4acl/apply-mask.test delete mode 100644 nfs4acl/basic.test delete mode 100644 nfs4acl/chmod.test delete mode 100644 nfs4acl/chown.test delete mode 100644 nfs4acl/computed-mode.test delete mode 100644 nfs4acl/create.test delete mode 100644 nfs4acl/ctime.test delete mode 100644 nfs4acl/delete.test delete mode 100755 nfs4acl/run delete mode 100644 nfs4acl/unrepresentable.test delete mode 100644 nfs4acl/write-vs-append.test create mode 100644 src/require-richacls.c create mode 120000 tests/richacl/001-apply-masks create mode 120000 tests/richacl/002-auto-inheritance create mode 120000 tests/richacl/003-basic create mode 120000 tests/richacl/004-chmod create mode 120000 tests/richacl/005-chown create mode 120000 tests/richacl/006-create create mode 120000 tests/richacl/007-ctime create mode 120000 tests/richacl/008-delete create mode 120000 tests/richacl/009-setrichacl-modify create mode 120000 tests/richacl/010-write-vs-append create mode 100644 tests/richacl/Makefile create mode 100755 tests/richacl/apply-masks create mode 100755 tests/richacl/auto-inheritance create mode 100755 tests/richacl/basic create mode 100755 tests/richacl/chmod create mode 100755 tests/richacl/chown create mode 100755 tests/richacl/create create mode 100755 tests/richacl/ctime create mode 100755 tests/richacl/delete create mode 100644 tests/richacl/group create mode 100755 tests/richacl/setrichacl-modify create mode 100644 tests/richacl/test-lib.sh create mode 100755 tests/richacl/write-vs-append delete mode 100644 tests/xfs/033.crc.out.linux create mode 100644 tests/xfs/033.out.crc.linux delete mode 100644 tests/xfs/096.external delete mode 100644 tests/xfs/096.internal create mode 100644 tests/xfs/096.out.external create mode 100644 tests/xfs/096.out.internal delete mode 100755 tests/xfs/191 delete mode 100644 tests/xfs/191.out
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH v2 3/6 Rename output file templates to match TEST.out*
Rename the expected output files so that they all match "$TEST_NAME.out*". That way, we can statically check if a test has any .out* files.
Tests with multiple output file variants symlink $TEST_NAME.out to one of those variants. For those tests, add $TEST_NAME.out to .gitignore.
--- .gitignore | 16 ++++ tests/xfs/033 | 2 +- tests/xfs/033.crc.out.linux | 197 -------------------------------------------- tests/xfs/033.out.crc.linux | 197 ++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/096 | 4 +- tests/xfs/096.external | 50 ----------- tests/xfs/096.internal | 51 ------------ tests/xfs/096.out.external | 50 +++++++++++ tests/xfs/096.out.internal | 51 ++++++++++++ 9 files changed, 317 insertions(+), 301 deletions(-) delete mode 100644 tests/xfs/033.crc.out.linux create mode 100644 tests/xfs/033.out.crc.linux delete mode 100644 tests/xfs/096.external delete mode 100644 tests/xfs/096.internal create mode 100644 tests/xfs/096.out.external create mode 100644 tests/xfs/096.out.internal
.gitignore +16 -0
@@ -195,3 +195,19 @@ /dmapi/src/suite2/src/test_invis /dmapi/src/suite2/src/test_region /dmapi/src/suite2/src/test_rights + +# Symlinked .out files +/tests/generic/088.out +/tests/generic/097.out +/tests/xfs/022.out +/tests/xfs/023.out +/tests/xfs/031.out +/tests/xfs/033.out +/tests/xfs/035.out +/tests/xfs/036.out +/tests/xfs/039.out +/tests/xfs/043.out +/tests/xfs/055.out +/tests/xfs/071.out +/tests/xfs/096.out +/tests/xfs/146.out
tests/xfs/033 +1 -1
@@ -85,7 +85,7 @@ _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs # link correct .out file if [ $_fs_has_crcs -eq 1 ]; then - _link_out_file $seq.crc.out $seqfull.out + _link_out_file $seq.out.crc $seqfull.out else _link_out_file $seq.out $seqfull.out fi
tests/xfs/033.crc.out.linux deleted +0 -197
197 lines not on this page · raw message
tests/xfs/033.out.crc.linux new file +197 -0
197 lines not on this page · raw message
tests/xfs/096 +2 -2
@@ -109,9 +109,9 @@ _require_v2log # choose .out file based on internal/external log rm -f $seqfull.out if [ "$USE_EXTERNAL" = yes ]; then - ln -s $seq.external $seqfull.out + ln -s $seq.out.external $seqfull.out else - ln -s $seq.internal $seqfull.out + ln -s $seq.out.internal $seqfull.out fi # maximum log record size
tests/xfs/096.external deleted +0 -50
50 lines not on this page · raw message
tests/xfs/096.internal deleted +0 -51
51 lines not on this page · raw message
tests/xfs/096.out.external new file +50 -0
50 lines not on this page · raw message
tests/xfs/096.out.internal new file +51 -0
51 lines not on this page · raw message
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH v2 4/6 check: Add support for tests without *.out files
In reply to Andreas GruenbacherAdd support for tests which report their status through their exit code instead of producing output that is compared with the expected output.
When such a test returns with exit code 77, it is assumed to have been skipped; all other non-zero exit codes are treated as test failures.
--- check | 77 +++++++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 50 insertions(+), 27 deletions(-)
check +50 -27
@@ -204,6 +204,13 @@ _prepare_test_list() fi } +# Check if a test has any .out* files +has_out_files() +{ + set -- "$1".out* + [ $# -gt 0 -a -e "$1" ] +} + # Process command arguments first. while [ $# -gt 0 ]; do case "$1" in
@@ -612,6 +619,13 @@ for section in $HOST_OPTIONS_SECTIONS; do err=true fi + if ! has_out_files $seq; then + if [ $sts -eq 77 ]; then + cat $tmp.out > $seqres.notrun + sts=0 + fi + fi + if [ -f $seqres.notrun ] then $timestamp || echo -n " [not run] "
@@ -624,41 +638,50 @@ for section in $HOST_OPTIONS_SECTIONS; do echo -n " [failed, exit status $sts]" err=true fi - if [ ! -f $seq.out ] - then - echo " - no qualified output" - err=true - else - # coreutils 8.16+ changed quote formats in error messages from - # `foo' to 'foo'. Filter old versions to match the new version. - sed -i "s/\`/\'/g" $tmp.out - if diff $seq.out $tmp.out >/dev/null 2>&1 + if has_out_files $seq; then + if [ ! -f $seq.out ] then - if $err + echo " - no qualified output" + err=true + else + # coreutils 8.16+ changed quote formats in error messages from + # `foo' to 'foo'. Filter old versions to match the new version. + sed -i "s/\`/\'/g" $tmp.out + + if ! diff $seq.out $tmp.out >/dev/null 2>&1 then - : - else - echo "$seqnum `expr $stop - $start`" >>$tmp.time - echo -n " `expr $stop - $start`s" + echo " - output mismatch (see $seqres.out.bad)" + mv $tmp.out $seqres.out.bad + $diff $seq.out $seqres.out.bad | { + if test "$DIFF_LENGTH" -le 0; then + cat + else + head -n "$DIFF_LENGTH" + echo "..." + echo "(Run '$diff $seq.out $seqres.out.bad'" \ + " to see the entire diff)" + fi; } | \ + sed -e 's/^\(.\)/ \1/' + err=true fi - echo "" + fi + else + if ! $err; then + mv $tmp.out $seqres.out.good else - echo " - output mismatch (see $seqres.out.bad)" mv $tmp.out $seqres.out.bad - $diff $seq.out $seqres.out.bad | { - if test "$DIFF_LENGTH" -le 0; then - cat - else - head -n "$DIFF_LENGTH" - echo "..." - echo "(Run '$diff $seq.out $seqres.out.bad'" \ - " to see the entire diff)" - fi; } | \ - sed -e 's/^\(.\)/ \1/' - err=true + echo " - output (see $seqres.out.bad)" + cat $seqres.out.bad fi fi + + if ! $err; then + echo "$seqnum `expr $stop - $start`" >>$tmp.time + echo -n " `expr $stop - $start`s" + echo "" + fi + try="$try $seqnum" n_try=`expr $n_try + 1` _check_filesystems
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH v2 2/6 check: Enforce xfs filesystem recreation on $TEST_DEV
In reply to Andreas GruenbacherWhen recreating xfs filesystems on $TEST_DEV, pass option -f to enforce the filesystem creation instead of refusing to overwrite existing xfs filesystems. We already do that for ext2/ext3/ext4 filesystems.
--- common/rc | 3 +++ 1 file changed, 3 insertions(+)
common/rc +3 -0
@@ -572,6 +572,9 @@ _test_mkfs() btrfs) $MKFS_BTRFS_PROG $MKFS_OPTIONS $* $TEST_DEV > /dev/null ;; + xfs) + $MKFS_PROG -t $FSTYP -- -f $MKFS_OPTIONS $* $TEST_DEV + ;; ext2|ext3|ext4) $MKFS_PROG -t $FSTYP -- -F $MKFS_OPTIONS $* $TEST_DEV ;;
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH v2 5/6 Add richacl tests
In reply to Andreas GruenbacherAdd the Rich Access Control List tests from the richacl package. The new tests require TEST_DEV and TEST_DIR to be set.
If the filesystem on TEST_DEV does not support richacls, the richacl test will be skipped.
The richacl tests can be run separately with:
./check -g richacl
--- .gitignore | 1 + check | 2 +- src/Makefile | 2 +- src/require-richacls.c | 35 +++++++ tests/richacl/001-apply-masks | 1 + tests/richacl/002-auto-inheritance | 1 + tests/richacl/003-basic | 1 + tests/richacl/004-chmod | 1 + tests/richacl/005-chown | 1 + tests/richacl/006-create | 1 + tests/richacl/007-ctime | 1 + tests/richacl/008-delete | 1 + tests/richacl/009-setrichacl-modify | 1 + tests/richacl/010-write-vs-append | 1 + tests/richacl/Makefile | 23 +++++ tests/richacl/apply-masks | 163 ++++++++++++++++++++++++++++++ tests/richacl/auto-inheritance | 191 ++++++++++++++++++++++++++++++++++++ tests/richacl/basic | 97 ++++++++++++++++++ tests/richacl/chmod | 40 ++++++++ tests/richacl/chown | 42 ++++++++ tests/richacl/create | 36 +++++++ tests/richacl/ctime | 35 +++++++ tests/richacl/delete | 89 +++++++++++++++++ tests/richacl/group | 10 ++ tests/richacl/setrichacl-modify | 57 +++++++++++ tests/richacl/test-lib.sh | 149 ++++++++++++++++++++++++++++ tests/richacl/write-vs-append | 54 ++++++++++ 27 files changed, 1034 insertions(+), 2 deletions(-) create mode 100644 src/require-richacls.c create mode 120000 tests/richacl/001-apply-masks create mode 120000 tests/richacl/002-auto-inheritance create mode 120000 tests/richacl/003-basic create mode 120000 tests/richacl/004-chmod create mode 120000 tests/richacl/005-chown create mode 120000 tests/richacl/006-create create mode 120000 tests/richacl/007-ctime create mode 120000 tests/richacl/008-delete create mode 120000 tests/richacl/009-setrichacl-modify create mode 120000 tests/richacl/010-write-vs-append create mode 100644 tests/richacl/Makefile create mode 100755 tests/richacl/apply-masks create mode 100755 tests/richacl/auto-inheritance create mode 100755 tests/richacl/basic create mode 100755 tests/richacl/chmod create mode 100755 tests/richacl/chown create mode 100755 tests/richacl/create create mode 100755 tests/richacl/ctime create mode 100755 tests/richacl/delete create mode 100644 tests/richacl/group create mode 100755 tests/richacl/setrichacl-modify create mode 100644 tests/richacl/test-lib.sh create mode 100755 tests/richacl/write-vs-append
.gitignore +1 -0
@@ -116,6 +116,7 @@ /src/cloner /src/renameat2 /src/t_rename_overwrite +/src/require-richacls # dmapi/ binaries /dmapi/src/common/cmd/read_invis
check +1 -1
@@ -60,7 +60,7 @@ then exit 1 fi -SRC_GROUPS="generic shared" +SRC_GROUPS="generic shared richacl" export SRC_DIR="tests" usage()
src/Makefile +1 -1
@@ -19,7 +19,7 @@ LINUX_TARGETS = xfsctl bstat t_mtab getdevicesize preallo_rw_pattern_reader \ bulkstat_unlink_test_modified t_dir_offset t_futimens t_immutable \ stale_handle pwrite_mmap_blocked t_dir_offset2 seek_sanity_test \ seek_copy_test t_readdir_1 t_readdir_2 fsync-tester nsexec cloner \ - renameat2 t_getcwd e4compact + renameat2 t_getcwd e4compact require-richacls SUBDIRS =
src/require-richacls.c new file +35 -0
@@ -0,0 +1,35 @@ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif +#include <sys/types.h> +#include <sys/xattr.h> +#include <limits.h> +#include <stdlib.h> +#include <stdio.h> +#include <unistd.h> +#include <string.h> +#include <errno.h> +#include <libgen.h> + +int main (int argc,char *argv[]) +{ +int ret; + + ret =getxattr ("." ,"system.richacl" ,NULL ,0 ); +if (ret <0 && errno !=ENODATA ) { +char cwd[PATH_MAX ]; + +if (!getcwd (cwd,sizeof (cwd))) +strcpy (cwd,"." ); +if (errno ==ENOTSUP ) { +printf ("This test requires a filesystem with richacl " +"support at %s\n" , + cwd); +return 77 ; + }else { +perror (cwd); +return 1 ; + } + } +return 0 ; +}
tests/richacl/001-apply-masks new file +1 -0
@@ -0,0 +1 @@ +apply-masks
tests/richacl/002-auto-inheritance new file +1 -0
@@ -0,0 +1 @@ +auto-inheritance
tests/richacl/003-basic new file +1 -0
@@ -0,0 +1 @@ +basic
tests/richacl/004-chmod new file +1 -0
@@ -0,0 +1 @@ +chmod
tests/richacl/005-chown new file +1 -0
@@ -0,0 +1 @@ +chown
tests/richacl/006-create new file +1 -0
@@ -0,0 +1 @@ +create
tests/richacl/007-ctime new file +1 -0
@@ -0,0 +1 @@ +ctime
tests/richacl/008-delete new file +1 -0
@@ -0,0 +1 @@ +delete
tests/richacl/009-setrichacl-modify new file +1 -0
@@ -0,0 +1 @@ +setrichacl-modify
tests/richacl/010-write-vs-append new file +1 -0
@@ -0,0 +1 @@ +write-vs-append
tests/richacl/Makefile new file +23 -0
@@ -0,0 +1,23 @@ +# +# Copyright (C) 2015 Red Hat, Inc. +# + +TESTS = apply-masks basic chmod chown create delete setrichacl-modify \ + write-vs-append ctime auto-inheritance + +LSRCFILES = test-lib.sh $(TESTS) + +TOPDIR = ../.. +include $(TOPDIR)/include/builddefs + +TARGET_DIR = $(PKG_LIB_DIR)/$(TESTS_DIR)/richacl + +include $(BUILDRULES) + +install: + $(INSTALL) -m 755 -d $(TARGET_DIR) + $(INSTALL) -m 755 0[0-9][0-9]* $(TESTS) $(TARGET_DIR) + $(INSTALL) -m 644 group $(TARGET_DIR) + +# Nothing. +install-dev install-lib:
tests/richacl/apply-masks new file +163 -0
163 lines not on this page · raw message
tests/richacl/auto-inheritance new file +191 -0
191 lines not on this page · raw message
tests/richacl/basic new file +97 -0
97 lines not on this page · raw message
tests/richacl/chmod new file +40 -0
@@ -0,0 +1,40 @@ +#! /bin/bash + +. ${0%/*}/test-lib.sh + +require_runas +require_richacls +use_tmpdir + +export LC_ALL=C + +# Create file as root +ncheck "touch a" + +# We cannot set the acl as another user +runas -u 99 -g 99 +check "setrichacl --set '99:rwc::allow' a || echo status: \$?" <<EOF +a: Operation not permitted +status: 1 +EOF + +# We cannot chmod as another user +check "chmod 666 a || echo status: \$?" <<EOF +chmod: changing permissions of 'a': Operation not permitted +status: 1 +EOF + +# Give user 99 the write_acl permission +runas +ncheck "setrichacl --set '99:rwpC::allow' a" + +# Now user 99 can setrichacl and chmod ... +runas -u 99 -g 99 +ncheck "setrichacl --set '99:rwpC::allow' a" +ncheck "chmod 666 a" + +# ... but chmod disables the write_acl permission +check "setrichacl --set '99:rwpC::allow' a || echo status: \$?" <<EOF +a: Operation not permitted +status: 1 +EOF
tests/richacl/chown new file +42 -0
42 lines not on this page · raw message
tests/richacl/create new file +36 -0
@@ -0,0 +1,36 @@ +#! /bin/bash + +. ${0%/*}/test-lib.sh + +require_runas +require_richacls +use_tmpdir + +export LC_ALL=C + +# Create directories as root with different permissions +ncheck "mkdir d1 d2 d3" +ncheck "setrichacl --set '99:wx::allow' d2" +ncheck "setrichacl --set '99:px::allow' d3" + +runas -u 99 -g 99 + +# Cannot create files or directories without permissions +check "touch d1/f || :" <<EOF +touch: cannot touch 'd1/f': Permission denied +EOF +check "mkdir d1/d || :" <<EOF +mkdir: cannot create directory 'd1/d': Permission denied +EOF + +# Can create files with add_file (w) permission +ncheck "touch d2/f" +check "mkdir d2/d || :" <<EOF +mkdir: cannot create directory 'd2/d': Permission denied +EOF + +# Can create directories with add_subdirectory (p) permission +check "touch d3/f || :" <<EOF +touch: cannot touch 'd3/f': Permission denied +EOF +ncheck "mkdir d3/d"
tests/richacl/ctime new file +35 -0
@@ -0,0 +1,35 @@ +#! /bin/bash + +. ${0%/*}/test-lib.sh + +require_runas +require_richacls +use_tmpdir + +export LC_ALL=C + +ncheck "touch a" + +# Without write access, the ctime cannot be changed +runas -u 99 -g 99 +check "touch a || :" <<EOF +touch: cannot touch 'a': Permission denied +EOF + +runas +ncheck "setrichacl --set '99:rw::allow' a" + +# With write access, the ctime can be set to the current time, but not to +# any other time +runas -u 99 -g 99 +ncheck "touch a" +check "touch -d '1 hour ago' a || :" <<EOF +touch: setting times of 'a': Operation not permitted +EOF + +runas +ncheck "setrichacl --set '99:rwA::allow' a" + +# With set_attributes access, the ctime can be set to an arbitrary time +runas -u 99 -g 99 +ncheck "touch -d '1 hour ago' a"
tests/richacl/delete new file +89 -0
89 lines not on this page · raw message
tests/richacl/group new file +10 -0
@@ -0,0 +1,10 @@ +001-apply-masks auto quick richacl +002-auto-inheritance auto quick richacl +003-basic auto quick richacl +004-chmod auto quick richacl +005-chown auto quick richacl +006-create auto quick richacl +007-ctime auto quick richacl +008-delete auto quick richacl +009-setrichacl-modify auto quick richacl +010-write-vs-append auto quick richacl
tests/richacl/setrichacl-modify new file +57 -0
57 lines not on this page · raw message
tests/richacl/test-lib.sh new file +149 -0
149 lines not on this page · raw message
tests/richacl/write-vs-append new file +54 -0
54 lines not on this page · raw message
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
PATCH v2 6/6 Remove the obsolete nfs4acl tests
In reply to Andreas GruenbacherThe nfs4acl tests don't make sense anymore as they have been obsoleted by richacls.
--- nfs4acl/Makefile | 29 ---- nfs4acl/apply-mask.test | 143 ------------------- nfs4acl/basic.test | 70 ---------- nfs4acl/chmod.test | 31 ----- nfs4acl/chown.test | 63 --------- nfs4acl/computed-mode.test | 62 --------- nfs4acl/create.test | 35 ----- nfs4acl/ctime.test | 36 ----- nfs4acl/delete.test | 77 ---------- nfs4acl/run | 298 --------------------------------------- nfs4acl/unrepresentable.test | 20 --- nfs4acl/write-vs-append.test | 46 ------ tests/xfs/191 | 75 ---------- tests/xfs/191.out | 324 ------------------------------------------- tests/xfs/group | 1 - 15 files changed, 1310 deletions(-) delete mode 100644 nfs4acl/Makefile delete mode 100644 nfs4acl/apply-mask.test delete mode 100644 nfs4acl/basic.test delete mode 100644 nfs4acl/chmod.test delete mode 100644 nfs4acl/chown.test delete mode 100644 nfs4acl/computed-mode.test delete mode 100644 nfs4acl/create.test delete mode 100644 nfs4acl/ctime.test delete mode 100644 nfs4acl/delete.test delete mode 100755 nfs4acl/run delete mode 100644 nfs4acl/unrepresentable.test delete mode 100644 nfs4acl/write-vs-append.test delete mode 100755 tests/xfs/191 delete mode 100644 tests/xfs/191.out
nfs4acl/Makefile deleted +0 -29
@@ -1,29 +0,0 @@ -#----------------------------------------------------------------------- -# Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# -#----------------------------------------------------------------------- - -TOPDIR = .. -include $(TOPDIR)/include/builddefs - -LSRCFILES = run \ - apply-mask.test chmod.test computed-mode.test ctime.test \ - unrepresentable.test basic.test chown.test create.test \ - delete.test write-vs-append.test - -include $(BUILDRULES) - -default install install-dev install-lib:
nfs4acl/apply-mask.test deleted +0 -143
143 lines not on this page · raw message
nfs4acl/basic.test deleted +0 -70
70 lines not on this page · raw message
nfs4acl/chmod.test deleted +0 -31
@@ -1,31 +0,0 @@ -$ mkdir d -$ cd d - -$ whoami -> root - -$ touch a - -Neet to have write_acl permission to chmod or set the acl: - $ su bin - $ chmod 666 a - > chmod: changing permissions of `a': Operation not permitted - $ nfs4acl --set 'bin:rwM::allow' a - > a: Operation not permitted - -$ su -$ nfs4acl --set 'bin:rwm::allow' a - -Can set the acl now: - $ su bin - $ nfs4acl --set 'bin:rwm::allow' a - -A chmod limits the permissions to the specified mode, which always disables -write_acl: - $ chmod 666 a - $ nfs4acl --set 'bin:rwm::allow' a - > a: Operation not permitted - -$ su -$ cd .. -$ rm -rf d
nfs4acl/chown.test deleted +0 -63
63 lines not on this page · raw message
nfs4acl/computed-mode.test deleted +0 -62
62 lines not on this page · raw message
nfs4acl/create.test deleted +0 -35
@@ -1,35 +0,0 @@ -$ mkdir d -$ cd d - -$ whoami -> root - -$ mkdir d1 d2 d3 d4 -$ nfs4acl --set 'daemon:wx::allow' d2 -$ nfs4acl --set 'daemon:ax::allow' d3 -$ nfs4acl --set 'daemon:wax::allow' d4 - -$ su daemon - -Cannot create files or directories without permissions: - $ touch d1/f - > touch: cannot touch `d1/f': Permission denied - $ mkdir d1/d - > mkdir: cannot create directory `d1/d': Permission denied - -Can create files with add_file (w) permission: - $ touch d2/f - $ mkdir d2/d - > mkdir: cannot create directory `d2/d': Permission denied - -Can create directories with add_subdirectory (p) permission: - $ touch d3/f - > touch: cannot touch `d3/f': Permission denied - $ mkdir d3/d - -Both permissions at the same time: - $ touch d4/f - $ mkdir d4/d -$ su -$ cd .. -$ rm -rf d
nfs4acl/ctime.test deleted +0 -36
@@ -1,36 +0,0 @@ -$ mkdir d -$ cd d - -$ whoami -> root - -$ touch a b -$ sleep 1 - -Without write access, the ctime cannot be changed. - $ su bin - $ touch a - > touch: cannot touch `a': Permission denied - -With write access, the ctime can be set to the current time, but not to -any other time: - $ su - $ nfs4acl --set 'bin:rw::allow' a - - $ su bin - $ touch a - $ [ b -ot a ] || echo 'b should be older than a' - $ touch -r b a - > touch: setting times of `a': Operation not permitted - -With set_attributes access, the ctime can be set to an arbitrary time: - $ su - $ nfs4acl --set 'bin:rwt::allow' a - - $ su bin - $ touch -r b a - $ [ b -ot a -o a -ot b ] && echo 'a should be as old as b' - -$ su -$ cd .. -$ rm -rf d
nfs4acl/delete.test deleted +0 -77
77 lines not on this page · raw message
nfs4acl/run deleted +0 -298
298 lines not on this page · raw message
nfs4acl/unrepresentable.test deleted +0 -20
@@ -1,20 +0,0 @@ -Test cases for (acl, masks) pairs that cannot be represented as -pure ACLs - -$ rm -rf d -$ mkdir d -$ cd d - -$ touch x - -$ nfs4acl --set 'group@:rw::allow' x -$ chmod 600 x -$ ls -l x | cut -d ' ' -f 1 -> -rw------- -$ nfs4acl --get x -> x: -> -$ rm -f x - -$ cd .. -$ rm -rf d
nfs4acl/write-vs-append.test deleted +0 -46
46 lines not on this page · raw message
tests/xfs/191 deleted +0 -75
75 lines not on this page · raw message
tests/xfs/191.out deleted +0 -324
324 lines not on this page · raw message
tests/xfs/group +0 -1
@@ -176,7 +176,6 @@ 188 ci dir auto 189 mount auto quick 190 rw auto quick -191 nfs4acl auto 194 rw auto 195 ioctl dump auto quick 196 quota auto quick
Signature · 6 lines
2.5.0 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs