2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat, Inc. All Rights Reserved.
10 _begin_fstest auto quick richacl
12 # Import common functions.
14 # real QA test starts here
19 _require_scratch_richacl
23 _scratch_mkfs_richacl >> $seqres.full
30 echo "--- runas -u 99 -g 99 $*"
31 _runas -u 99 -g 99 -- "$@"
36 # Without write access, the ctime cannot be changed
39 $SETRICHACL_PROG --set 'u:99:rw::allow' a
41 # With write access, the ctime can be set to the current time, but not to
44 r touch -d '1 hour ago' a
46 $SETRICHACL_PROG --set 'u:99:rwA::allow' a
48 # With set_attributes access, the ctime can be set to an arbitrary time
49 r touch -d '1 hour ago' a