aboutsummaryrefslogtreecommitdiffstats
path: root/test/chroot/chroot.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-02-28 10:07:35 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-02-28 10:07:35 -0500
commit55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0 (patch)
tree1a3401e24c0efa8d1ceb0d535386eed9725eea38 /test/chroot/chroot.sh
parentMerge branch 'master' of ssh://github.com/netblue30/firejail (diff)
downloadfirejail-55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0.tar.gz
firejail-55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0.tar.zst
firejail-55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0.zip
chroot testing
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)"