2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat, Inc. All Rights Reserved.
7 # RichACL write-vs-append test
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
27 # remove previous $seqres.full before test
30 # real QA test starts here
36 _require_scratch_richacl
40 _scratch_mkfs_richacl >> $seqres.full
47 echo "--- runas -u 99 -g 99 $*"
48 _runas -u 99 -g 99 -- "$@"
52 $SETRICHACL_PROG --set 'owner@:rwp::allow' a
53 $SETRICHACL_PROG --set 'owner@:rwp::allow u:99:w::allow' b
54 $SETRICHACL_PROG --set 'owner@:rwp::allow u:99:p::allow' c
55 $SETRICHACL_PROG --set 'owner@:rwp::allow u:99:wp::allow' d
56 $SETRICHACL_PROG --set 'u:99:a::deny owner@:rwp::allow u:99:w::allow' e
57 $SETRICHACL_PROG --set 'u:99:w::deny owner@:rwp::allow u:99:p::allow' f