diff options
author | 2016-04-23 16:16:51 -0400 | |
---|---|---|
committer | 2016-04-23 16:16:51 -0400 | |
commit | 7e1c057aeda3b598838cb66b9e827fc087f70c54 (patch) | |
tree | 6d13b82ed69f1d3a5b5973072e2b5cc3ea3eca16 /test/xterm-x11.exp | |
parent | hexchat profile (diff) | |
download | firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.tar.gz firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.tar.zst firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.zip |
make testing
Diffstat (limited to 'test/xterm-x11.exp')
-rwxr-xr-x | test/xterm-x11.exp | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/test/xterm-x11.exp b/test/xterm-x11.exp deleted file mode 100755 index 592f77659..000000000 --- a/test/xterm-x11.exp +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=test --net=br0 --x11 xterm\r" | ||
8 | sleep 10 | ||
9 | |||
10 | spawn $env(SHELL) | ||
11 | send -- "firejail --list\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 3\n";exit} | ||
14 | ":firejail" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
18 | "xterm" | ||
19 | } | ||
20 | sleep 1 | ||
21 | |||
22 | # grsecurity exit | ||
23 | send -- "file /proc/sys/kernel/grsecurity\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR - grsecurity detection\n";exit} | ||
26 | "grsecurity: directory" {puts "grsecurity present, exiting...\n";exit} | ||
27 | "cannot open" {puts "grsecurity not present\n"} | ||
28 | } | ||
29 | |||
30 | send -- "firejail --name=blablabla\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 4\n";exit} | ||
33 | "Child process initialized" | ||
34 | } | ||
35 | sleep 2 | ||
36 | |||
37 | spawn $env(SHELL) | ||
38 | send -- "firemon --seccomp\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 5\n";exit} | ||
41 | ":firejail" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5.0\n";exit} | ||
45 | "xterm" | ||
46 | } | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit} | ||
49 | "Seccomp: 2" | ||
50 | } | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
53 | "name=blablabla" | ||
54 | } | ||
55 | sleep 1 | ||
56 | send -- "firemon --caps\r" | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 6\n";exit} | ||
59 | ":firejail" | ||
60 | } | ||
61 | expect { | ||
62 | timeout {puts "TESTING ERROR 6.0\n";exit} | ||
63 | "xterm" | ||
64 | } | ||
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 6.1\n";exit} | ||
67 | "CapBnd" | ||
68 | } | ||
69 | expect { | ||
70 | timeout {puts "TESTING ERROR 6.2\n";exit} | ||
71 | "0000000000000000" | ||
72 | } | ||
73 | expect { | ||
74 | timeout {puts "TESTING ERROR 6.3\n";exit} | ||
75 | "name=blablabla" | ||
76 | } | ||
77 | sleep 1 | ||
78 | send -- "firejail --shutdown=test\r" | ||
79 | sleep 3 | ||
80 | |||
81 | puts "\nall done\n" | ||
82 | |||