aboutsummaryrefslogtreecommitdiffstats
path: root/test/chroot/chroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/chroot/chroot.sh')
-rwxr-xr-xtest/chroot/chroot.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/chroot/chroot.sh b/test/chroot/chroot.sh
index a1fb3ee38..3b10cbc59 100755
--- a/test/chroot/chroot.sh
+++ b/test/chroot/chroot.sh
@@ -11,12 +11,14 @@ rm -f unchroot
11gcc -o unchroot unchroot.c 11gcc -o unchroot unchroot.c
12sudo ./configure 12sudo ./configure
13 13
14
14echo "TESTING: chroot disabled (test/chroot/fs_chroot_disabled.exp)" 15echo "TESTING: chroot disabled (test/chroot/fs_chroot_disabled.exp)"
16sudo sed -i s/"chroot yes"/"# chroot no"/g /etc/firejail/firejail.config
15./fs_chroot_disabled.exp 17./fs_chroot_disabled.exp
16 18
17sudo sed -i s/"# chroot no"/"chroot yes"/g /etc/firejail/firejail.config
18 19
19echo "TESTING: chroot (test/chroot/fs_chroot.exp)" 20echo "TESTING: chroot (test/chroot/fs_chroot.exp)"
21sudo sed -i s/"# chroot no"/"chroot yes"/g /etc/firejail/firejail.config
20./fs_chroot.exp 22./fs_chroot.exp
21 23
22echo "TESTING: unchroot as root (test/chroot/unchroot-as-root.exp)" 24echo "TESTING: unchroot as root (test/chroot/unchroot-as-root.exp)"