diff options
Diffstat (limited to 'test/chroot/chroot.sh')
-rwxr-xr-x | test/chroot/chroot.sh | 4 |
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 | |||
11 | gcc -o unchroot unchroot.c | 11 | gcc -o unchroot unchroot.c |
12 | sudo ./configure | 12 | sudo ./configure |
13 | 13 | ||
14 | |||
14 | echo "TESTING: chroot disabled (test/chroot/fs_chroot_disabled.exp)" | 15 | echo "TESTING: chroot disabled (test/chroot/fs_chroot_disabled.exp)" |
16 | sudo sed -i s/"chroot yes"/"# chroot no"/g /etc/firejail/firejail.config | ||
15 | ./fs_chroot_disabled.exp | 17 | ./fs_chroot_disabled.exp |
16 | 18 | ||
17 | sudo sed -i s/"# chroot no"/"chroot yes"/g /etc/firejail/firejail.config | ||
18 | 19 | ||
19 | echo "TESTING: chroot (test/chroot/fs_chroot.exp)" | 20 | echo "TESTING: chroot (test/chroot/fs_chroot.exp)" |
21 | sudo sed -i s/"# chroot no"/"chroot yes"/g /etc/firejail/firejail.config | ||
20 | ./fs_chroot.exp | 22 | ./fs_chroot.exp |
21 | 23 | ||
22 | echo "TESTING: unchroot as root (test/chroot/unchroot-as-root.exp)" | 24 | echo "TESTING: unchroot as root (test/chroot/unchroot-as-root.exp)" |