From 1cb8ef59101eeaa1b325fb7f881ded148b0de1d3 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 31 Oct 2015 13:07:38 -0400 Subject: --chroot testing --- test/fs_chroot.exp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'test/fs_chroot.exp') diff --git a/test/fs_chroot.exp b/test/fs_chroot.exp index 448a00a7a..4ddf8d32a 100755 --- a/test/fs_chroot.exp +++ b/test/fs_chroot.exp @@ -4,7 +4,7 @@ set timeout 10 spawn $env(SHELL) match_max 100000 -send -- "firejail --noprofile --chroot=/tmp/chroot\r" +send -- "firejail --chroot=/tmp/chroot\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "Child process initialized" @@ -13,12 +13,24 @@ sleep 1 send -- "cd /home;pwd\r" expect { - timeout {puts "TESTING ERROR 3\n";exit} + timeout {puts "TESTING ERROR 0.1\n";exit} "home" } sleep 1 send -- "bash\r" sleep 1 +send -- "ls /; pwd\r" +expect { + timeout {puts "TESTING ERROR 0.2\n";exit} + "this-is-my-chroot" +} +expect { + timeout {puts "TESTING ERROR 0.3\n";exit} + "home" +} + + + send -- "ps aux; pwd\r" expect { timeout {puts "TESTING ERROR 1\n";exit} @@ -50,5 +62,6 @@ expect { } sleep 1 + puts "all done\n" -- cgit v1.2.3-70-g09d2