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 -- "$@"
34 # Create directories as root with different permissions
36 $SETRICHACL_PROG --set 'u:99:wx::allow' d2
37 $SETRICHACL_PROG --set 'u:99:px::allow' d3
39 # Cannot create files or directories without permissions
43 # Can create files with add_file (w) permission
47 # Can create directories with add_subdirectory (p) permission