2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat, Inc. All Rights Reserved.
7 # Test if O_TMPFILE files inherit POSIX Default ACLs when they are linked into
11 _begin_fstest auto quick acl
13 # Import common functions.
17 # real QA test starts here
21 _require_xfs_io_command "-T"
22 _require_xfs_io_command "flink"
25 testdir="${TEST_DIR}/d.$seq"
26 testfile="${testdir}/tst-tmpfile-flink"
31 setfacl -d -m u::rwx,g::rwx,o::rx ${testdir}
32 $XFS_IO_PROG -T -m 0666 \
35 -c "flink ${testfile}" \
36 ${testdir} | _filter_xfs_io
37 stat -c '%a' ${testfile}