aboutsummaryrefslogtreecommitdiffstats
path: root/test/chroot/fs_chroot.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/chroot/fs_chroot.exp')
-rwxr-xr-xtest/chroot/fs_chroot.exp61
1 files changed, 0 insertions, 61 deletions
diff --git a/test/chroot/fs_chroot.exp b/test/chroot/fs_chroot.exp
deleted file mode 100755
index a071027e5..000000000
--- a/test/chroot/fs_chroot.exp
+++ /dev/null
@@ -1,61 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --chroot=/tmp/chroot\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Error: --chroot option is not available on Grsecurity systems" {puts "\nall done\n"; exit}
11 "Child process initialized" {puts "chroot available\n"};
12}
13sleep 1
14
15send -- "cd /home;pwd\r"
16expect {
17 timeout {puts "TESTING ERROR 0.1\n";exit}
18 "home"
19}
20sleep 1
21send -- "bash\r"
22sleep 1
23send -- "ls /\r"
24expect {
25 timeout {puts "TESTING ERROR 0.2\n";exit}
26 "this-is-my-chroot"
27}
28after 100
29
30send -- "ps aux\r"
31expect {
32 timeout {puts "TESTING ERROR 1\n";exit}
33 "/bin/bash"
34}
35expect {
36 timeout {puts "TESTING ERROR 2\n";exit}
37 "bash"
38}
39expect {
40 timeout {puts "TESTING ERROR 3\n";exit}
41 "ps aux"
42}
43after 100
44
45send -- "ps aux | wc -l; pwd\r"
46expect {
47 timeout {puts "TESTING ERROR 5\n";exit}
48 "6"
49}
50after 100
51
52# check /sys directory
53send -- "ls /sys\r"
54expect {
55 timeout {puts "TESTING ERROR 6\n";exit}
56 "block"
57}
58after 100
59
60
61puts "all done\n"