summaryrefslogtreecommitdiff
path: root/tests/generic/697
blob: 8d7ad651174ee4f6b5c54a9f68e77700b7af1db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2022 Fujitsu Limited. All Rights Reserved.
#
# FS QA Test No. 697
#
# Test S_ISGID stripping whether works correctly when call process
# uses posix acl.
#
# It is also a regression test for
# commit 1639a49ccdce ("fs: move S_ISGID stripping into the vfs_*() helpers")

. ./common/preamble
_begin_fstest auto quick cap acl idmapped mount perms rw unlink

# Import common functions.
. ./common/filter
. ./common/attr

# real QA test starts here

_supported_fs generic
_require_test
_require_acls
_fixed_by_kernel_commit 1639a49ccdce \
	"fs: move S_ISGID stripping into the vfs_*() helpers"

$here/src/vfs/vfstest --test-setgid-create-acl \
        --device "$TEST_DEV" --mount "$TEST_DIR" --fstype "$FSTYP"

echo "Silence is golden"
status=0
exit