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