aboutsummaryrefslogtreecommitdiffstats
path: root/test/icedove-x11.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-15 15:34:19 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-15 15:34:19 -0400
commit3ee0df541e284074662c7c916951fb37aac4abef (patch)
treeb176830d33d229d83426314b639d55d72874ac68 /test/icedove-x11.exp
parentmerged 0ad profile from Fred-Barclay (diff)
downloadfirejail-3ee0df541e284074662c7c916951fb37aac4abef.tar.gz
firejail-3ee0df541e284074662c7c916951fb37aac4abef.tar.zst
firejail-3ee0df541e284074662c7c916951fb37aac4abef.zip
x11 fixes
Diffstat (limited to 'test/icedove-x11.exp')
-rwxr-xr-xtest/icedove-x11.exp82
1 files changed, 82 insertions, 0 deletions
diff --git a/test/icedove-x11.exp b/test/icedove-x11.exp
new file mode 100755
index 000000000..6f8eee90d
--- /dev/null
+++ b/test/icedove-x11.exp
@@ -0,0 +1,82 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=test --net=br0 --x11 icedove\r"
8sleep 10
9
10spawn $env(SHELL)
11send -- "firejail --list\r"
12expect {
13 timeout {puts "TESTING ERROR 3\n";exit}
14 ":firejail"
15}
16expect {
17 timeout {puts "TESTING ERROR 3.1\n";exit}
18 "icedove"
19}
20sleep 1
21
22# grsecurity exit
23send -- "file /proc/sys/kernel/grsecurity\r"
24expect {
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
30send -- "firejail --name=blablabla\r"
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "Child process initialized"
34}
35sleep 2
36
37spawn $env(SHELL)
38send -- "firemon --seccomp\r"
39expect {
40 timeout {puts "TESTING ERROR 5\n";exit}
41 ":firejail"
42}
43expect {
44 timeout {puts "TESTING ERROR 5.0\n";exit}
45 "icedove"
46}
47expect {
48 timeout {puts "TESTING ERROR 5.1 (seccomp)\n";exit}
49 "Seccomp: 2"
50}
51expect {
52 timeout {puts "TESTING ERROR 5.1\n";exit}
53 "name=blablabla"
54}
55sleep 2
56send -- "firemon --caps\r"
57expect {
58 timeout {puts "TESTING ERROR 6\n";exit}
59 ":firejail"
60}
61expect {
62 timeout {puts "TESTING ERROR 6.0\n";exit}
63 "icedove"
64}
65expect {
66 timeout {puts "TESTING ERROR 6.1\n";exit}
67 "CapBnd"
68}
69expect {
70 timeout {puts "TESTING ERROR 6.2\n";exit}
71 "0000000000000000"
72}
73expect {
74 timeout {puts "TESTING ERROR 6.3\n";exit}
75 "name=blablabla"
76}
77sleep 1
78send -- "firejail --shutdown=test\r"
79sleep 3
80
81puts "\nall done\n"
82