aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2021-02-03 18:25:11 +0100
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2021-02-03 18:26:08 +0100
commit2d68073e71f69f14fc93fa876ac6ac2ac6fe1397 (patch)
tree570e8b5cf83f8e2c194f832b748438d578c1a38c
parentFix minor typo in firecfg's manual page (diff)
downloadfirejail-2d68073e71f69f14fc93fa876ac6ac2ac6fe1397.tar.gz
firejail-2d68073e71f69f14fc93fa876ac6ac2ac6fe1397.tar.zst
firejail-2d68073e71f69f14fc93fa876ac6ac2ac6fe1397.zip
tests: check with faudit if tests are run sandboxed
(cherry picked from commit c40b78148108f21b8ff903ec870ffaab76550064)
-rwxr-xr-xtest/utils/utils.sh2
1 files changed, 1 insertions, 1 deletions
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)"
18rm -f ~/firejail-test-file-7699 18rm -f ~/firejail-test-file-7699
19rm -f firejail-test-file-4388 19rm -f firejail-test-file-4388
20 20
21if [ $(readlink /proc/self) -lt 100 ]; then 21if [ $(faudit | grep -c "is running in a PID namespace.") -gt 0 ]; then
22 echo "TESTING SKIP: already running in pid namespace (test/utils/audit.exp)" 22 echo "TESTING SKIP: already running in pid namespace (test/utils/audit.exp)"
23else 23else
24 echo "TESTING: audit (test/utils/audit.exp)" 24 echo "TESTING: audit (test/utils/audit.exp)"