diff options
author | 2023-02-28 10:07:35 -0500 | |
---|---|---|
committer | 2023-02-28 10:07:35 -0500 | |
commit | 55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0 (patch) | |
tree | 1a3401e24c0efa8d1ceb0d535386eed9725eea38 /test/chroot/chroot.sh | |
parent | Merge branch 'master' of ssh://github.com/netblue30/firejail (diff) | |
download | firejail-55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0.tar.gz firejail-55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0.tar.zst firejail-55fb69f4f500e8a6cbd3ce2cdc95c03d46b078e0.zip |
chroot testing
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)" |