From 2d68073e71f69f14fc93fa876ac6ac2ac6fe1397 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Wed, 3 Feb 2021 18:25:11 +0100 Subject: tests: check with faudit if tests are run sandboxed (cherry picked from commit c40b78148108f21b8ff903ec870ffaab76550064) --- test/utils/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/utils/utils.sh') diff --git a/test/utils/utils.sh b/test/utils/utils.sh index 7e8426f35..8453894a2 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh @@ -18,7 +18,7 @@ echo "TESTING: build (test/utils/build.exp)" rm -f ~/firejail-test-file-7699 rm -f firejail-test-file-4388 -if [ $(readlink /proc/self) -lt 100 ]; then +if [ $(faudit | grep -c "is running in a PID namespace.") -gt 0 ]; then echo "TESTING SKIP: already running in pid namespace (test/utils/audit.exp)" else echo "TESTING: audit (test/utils/audit.exp)" -- cgit v1.2.3-70-g09d2