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 -- "$@"
37 # Chown and chgrp with no take ownership permission fails
41 # Add the take_ownership permission
42 $SETRICHACL_PROG --set 'u:99:rwpo::allow' a
44 # Chown and chgrp to a user or group the process is not in fails
48 # Chown and chgrp to a user and group the process is in succeeds