diff --git a/tests/libtest.sh b/tests/libtest.sh index afdf3649..0ce10a62 100755 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -378,6 +378,11 @@ skip_without_fuse () { exit 0 fi + if ! capsh --print | grep -q 'Bounding set.*[^a-z]cap_sys_admin'; then + echo "1..0 # SKIP No cap_sys_admin in bounding set, can't use FUSE" + exit 0 + fi + if ! [ -w /dev/fuse ]; then echo "1..0 # SKIP no write access to /dev/fuse" exit 0