| #! /bin/bash |
| # SPDX-License-Identifier: GPL-2.0 |
| # Copyright (c) 2021 Christian Brauner. All Rights Reserved. |
| # |
| # FS QA Test 645 |
| # |
| # Test that idmapped mounts behave correctly with complex user namespaces. |
| # |
| . ./common/preamble |
| _begin_fstest auto quick idmapped mount |
| |
| # get standard environment, filters and checks |
| . ./common/rc |
| . ./common/filter |
| |
| # real QA test starts here |
| |
| _supported_fs generic |
| _require_idmapped_mounts |
| _require_test |
| |
| echo "Silence is golden" |
| |
| $here/src/idmapped-mounts/idmapped-mounts --test-nested-userns \ |
| --device "$TEST_DEV" --mount "$TEST_DIR" --fstype "$FSTYP" |
| |
| status=$? |
| exit |