aboutsummaryrefslogtreecommitdiffstats
path: root/test/root
diff options
context:
space:
mode:
Diffstat (limited to 'test/root')
-rwxr-xr-xtest/root/apache2.exp2
-rwxr-xr-xtest/root/cgroup.exp12
-rwxr-xr-xtest/root/firemon-events.exp2
-rwxr-xr-xtest/root/isc-dhcp.exp2
-rwxr-xr-xtest/root/join.exp18
-rwxr-xr-xtest/root/login_nobody.exp2
-rwxr-xr-xtest/root/nginx.exp2
-rwxr-xr-xtest/root/option_bind_directory.exp2
-rwxr-xr-xtest/root/option_bind_file.exp2
-rwxr-xr-xtest/root/option_tmpfs.exp2
-rwxr-xr-xtest/root/private.exp10
-rwxr-xr-xtest/root/profile_tmpfs.exp2
-rwxr-xr-xtest/root/seccomp-chmod.exp2
-rwxr-xr-xtest/root/seccomp-chown.exp2
-rwxr-xr-xtest/root/seccomp-umount.exp2
-rwxr-xr-xtest/root/snmpd.exp2
-rwxr-xr-xtest/root/unbound.exp2
-rwxr-xr-xtest/root/whitelist.exp10
18 files changed, 43 insertions, 35 deletions
diff --git a/test/root/apache2.exp b/test/root/apache2.exp
index c3e520224..a6b25de2f 100755
--- a/test/root/apache2.exp
+++ b/test/root/apache2.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=apache /etc/init.d/apache2 start\r" 10send -- "firejail --name=apache /etc/init.d/apache2 start\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/cgroup.exp b/test/root/cgroup.exp
index f64edf4b9..9a1bbe161 100755
--- a/test/root/cgroup.exp
+++ b/test/root/cgroup.exp
@@ -20,7 +20,7 @@ expect {
20send -- "firejail --name=\"join testing\" --cgroup=/sys/fs/cgroup/systemd/firejail/tasks\r" 20send -- "firejail --name=\"join testing\" --cgroup=/sys/fs/cgroup/systemd/firejail/tasks\r"
21expect { 21expect {
22 timeout {puts "TESTING ERROR 1\n";exit} 22 timeout {puts "TESTING ERROR 1\n";exit}
23 "Child process initialized" 23 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
24} 24}
25sleep 2 25sleep 2
26 26
@@ -37,14 +37,18 @@ expect {
37 timeout {puts "TESTING ERROR 3\n";exit} 37 timeout {puts "TESTING ERROR 3\n";exit}
38 "Switching to pid" 38 "Switching to pid"
39} 39}
40expect {
41 timeout {puts "TESTING ERROR 4\n";exit}
42 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
43}
40sleep 1 44sleep 1
41send -- "ps aux\r" 45send -- "ps aux\r"
42expect { 46expect {
43 timeout {puts "TESTING ERROR 4\n";exit} 47 timeout {puts "TESTING ERROR 5\n";exit}
44 "/bin/bash" 48 "/bin/bash"
45} 49}
46expect { 50expect {
47 timeout {puts "TESTING ERROR 5\n";exit} 51 timeout {puts "TESTING ERROR 6\n";exit}
48 "/bin/bash" 52 "/bin/bash"
49} 53}
50 54
@@ -53,7 +57,7 @@ after 100
53spawn $env(SHELL) 57spawn $env(SHELL)
54send -- "wc -l /sys/fs/cgroup/systemd/firejail/tasks\r" 58send -- "wc -l /sys/fs/cgroup/systemd/firejail/tasks\r"
55expect { 59expect {
56 timeout {puts "TESTING ERROR 6\n";exit} 60 timeout {puts "TESTING ERROR 7\n";exit}
57 "3" 61 "3"
58} 62}
59after 100 63after 100
diff --git a/test/root/firemon-events.exp b/test/root/firemon-events.exp
index f2c0879db..8eab93a2a 100755
--- a/test/root/firemon-events.exp
+++ b/test/root/firemon-events.exp
@@ -18,7 +18,7 @@ set firejail_id $spawn_id
18send -- "firejail\r" 18send -- "firejail\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 0\n";exit} 20 timeout {puts "TESTING ERROR 0\n";exit}
21 "Child process initialized" 21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22} 22}
23 23
24# get messages on firemon 24# get messages on firemon
diff --git a/test/root/isc-dhcp.exp b/test/root/isc-dhcp.exp
index 86291a9f9..20e5ef408 100755
--- a/test/root/isc-dhcp.exp
+++ b/test/root/isc-dhcp.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" 10send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/join.exp b/test/root/join.exp
index 19b4c8f02..291ee9115 100755
--- a/test/root/join.exp
+++ b/test/root/join.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "firejail --name=jointesting --cpu=0 --nice=2\r" 11send -- "firejail --name=jointesting --cpu=0 --nice=2\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
15} 15}
16sleep 2 16sleep 2
17 17
@@ -21,14 +21,18 @@ expect {
21 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid" 22 "Switching to pid"
23} 23}
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
27}
24sleep 1 28sleep 1
25send -- "ps aux\r" 29send -- "ps aux\r"
26expect { 30expect {
27 timeout {puts "TESTING ERROR 2\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
28 "/bin/bash" 32 "/bin/bash"
29} 33}
30expect { 34expect {
31 timeout {puts "TESTING ERROR 3\n";exit} 35 timeout {puts "TESTING ERROR 4\n";exit}
32 "/bin/bash" 36 "/bin/bash"
33} 37}
34 38
@@ -36,15 +40,15 @@ send -- "exit\r"
36sleep 1 40sleep 1
37send -- "firejail --join-network=jointesting\r" 41send -- "firejail --join-network=jointesting\r"
38expect { 42expect {
39 timeout {puts "TESTING ERROR 4\n";exit} 43 timeout {puts "TESTING ERROR 5\n";exit}
40 "Child process initialized" 44 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
41} 45}
42send -- "exit\r" 46send -- "exit\r"
43sleep 1 47sleep 1
44send -- "firejail --join-filesystem=jointesting\r" 48send -- "firejail --join-filesystem=jointesting\r"
45expect { 49expect {
46 timeout {puts "TESTING ERROR 5\n";exit} 50 timeout {puts "TESTING ERROR 6\n";exit}
47 "Child process initialized" 51 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
48} 52}
49 53
50after 100 54after 100
diff --git a/test/root/login_nobody.exp b/test/root/login_nobody.exp
index cf3df268d..9c0932196 100755
--- a/test/root/login_nobody.exp
+++ b/test/root/login_nobody.exp
@@ -11,7 +11,7 @@ match_max 100000
11send -- "su - nobody -s /usr/bin/firejail\r" 11send -- "su - nobody -s /usr/bin/firejail\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
15} 15}
16after 100 16after 100
17 17
diff --git a/test/root/nginx.exp b/test/root/nginx.exp
index af1ab8eb9..40d8cb51e 100755
--- a/test/root/nginx.exp
+++ b/test/root/nginx.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=nginx /etc/init.d/nginx start\r" 10send -- "firejail --name=nginx /etc/init.d/nginx start\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/option_bind_directory.exp b/test/root/option_bind_directory.exp
index 122a1ea79..4fabf0cd8 100755
--- a/test/root/option_bind_directory.exp
+++ b/test/root/option_bind_directory.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --bind=/tmp/chroot,mntpoint\r" 10send -- "firejail --bind=/tmp/chroot,mntpoint\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/root/option_bind_file.exp b/test/root/option_bind_file.exp
index 4e02638e6..6c796a2b0 100755
--- a/test/root/option_bind_file.exp
+++ b/test/root/option_bind_file.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --bind=tmpfile,/etc/passwd\r" 10send -- "firejail --bind=tmpfile,/etc/passwd\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/root/option_tmpfs.exp b/test/root/option_tmpfs.exp
index b40335680..13820afe8 100755
--- a/test/root/option_tmpfs.exp
+++ b/test/root/option_tmpfs.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --tmpfs=/var\r" 10send -- "firejail --tmpfs=/var\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/root/private.exp b/test/root/private.exp
index edc2520a2..70d0218fa 100755
--- a/test/root/private.exp
+++ b/test/root/private.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --private\r" 10send -- "firejail --private\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
@@ -42,7 +42,7 @@ after 100
42send -- "firejail --private-opt=firejail-test-file,firejail-test-dir --debug\r" 42send -- "firejail --private-opt=firejail-test-file,firejail-test-dir --debug\r"
43expect { 43expect {
44 timeout {puts "TESTING ERROR 3\n";exit} 44 timeout {puts "TESTING ERROR 3\n";exit}
45 "Child process initialized" 45 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
46} 46}
47sleep 1 47sleep 1
48 48
@@ -57,7 +57,7 @@ sleep 1
57send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r" 57send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r"
58expect { 58expect {
59 timeout {puts "TESTING ERROR 3.1\n";exit} 59 timeout {puts "TESTING ERROR 3.1\n";exit}
60 "Child process initialized" 60 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
61} 61}
62sleep 1 62sleep 1
63 63
@@ -80,7 +80,7 @@ after 100
80send -- "firejail --private-srv=firejail-test-file,firejail-test-dir --debug\r" 80send -- "firejail --private-srv=firejail-test-file,firejail-test-dir --debug\r"
81expect { 81expect {
82 timeout {puts "TESTING ERROR 5\n";exit} 82 timeout {puts "TESTING ERROR 5\n";exit}
83 "Child process initialized" 83 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
84} 84}
85sleep 1 85sleep 1
86 86
@@ -95,7 +95,7 @@ sleep 1
95send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r" 95send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r"
96expect { 96expect {
97 timeout {puts "TESTING ERROR 5.1\n";exit} 97 timeout {puts "TESTING ERROR 5.1\n";exit}
98 "Child process initialized" 98 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
99} 99}
100sleep 1 100sleep 1
101 101
diff --git a/test/root/profile_tmpfs.exp b/test/root/profile_tmpfs.exp
index 8625f100a..fba63773f 100755
--- a/test/root/profile_tmpfs.exp
+++ b/test/root/profile_tmpfs.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --profile=tmpfs.profile\r" 10send -- "firejail --profile=tmpfs.profile\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 1 15sleep 1
16 16
diff --git a/test/root/seccomp-chmod.exp b/test/root/seccomp-chmod.exp
index 8fbb687d5..ef0453548 100755
--- a/test/root/seccomp-chmod.exp
+++ b/test/root/seccomp-chmod.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r" 10send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/seccomp-chown.exp b/test/root/seccomp-chown.exp
index 0d9262494..968a4bc96 100755
--- a/test/root/seccomp-chown.exp
+++ b/test/root/seccomp-chown.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --seccomp=chown,fchown,fchownat,lchown --private\r" 10send -- "firejail --seccomp=chown,fchown,fchownat,lchown --private\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/seccomp-umount.exp b/test/root/seccomp-umount.exp
index 51a7c7647..b99ec30f7 100755
--- a/test/root/seccomp-umount.exp
+++ b/test/root/seccomp-umount.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --seccomp --noprofile\r" 10send -- "firejail --seccomp --noprofile\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/snmpd.exp b/test/root/snmpd.exp
index 7658cfc68..510abfbad 100755
--- a/test/root/snmpd.exp
+++ b/test/root/snmpd.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" 10send -- "firejail --name=snmpd /etc/init.d/snmpd start\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/unbound.exp b/test/root/unbound.exp
index 9e000be5e..6440304b2 100755
--- a/test/root/unbound.exp
+++ b/test/root/unbound.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --name=unbound unbound\r" 10send -- "firejail --name=unbound unbound\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15sleep 2 15sleep 2
16 16
diff --git a/test/root/whitelist.exp b/test/root/whitelist.exp
index 1e29e3fef..2397f6a90 100755
--- a/test/root/whitelist.exp
+++ b/test/root/whitelist.exp
@@ -16,7 +16,7 @@ after 100
16send -- "firejail --whitelist=/mnt/firejail-test-file --whitelist=/mnt/firejail-test-dir --debug\r" 16send -- "firejail --whitelist=/mnt/firejail-test-file --whitelist=/mnt/firejail-test-dir --debug\r"
17expect { 17expect {
18 timeout {puts "TESTING ERROR 0\n";exit} 18 timeout {puts "TESTING ERROR 0\n";exit}
19 "Child process initialized" 19 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
20} 20}
21sleep 1 21sleep 1
22 22
@@ -39,7 +39,7 @@ after 100
39send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r" 39send -- "firejail --whitelist=/opt/firejail-test-file --whitelist=/opt/firejail-test-dir --debug\r"
40expect { 40expect {
41 timeout {puts "TESTING ERROR 2\n";exit} 41 timeout {puts "TESTING ERROR 2\n";exit}
42 "Child process initialized" 42 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
43} 43}
44sleep 1 44sleep 1
45 45
@@ -61,7 +61,7 @@ after 100
61send -- "firejail --whitelist=/media/firejail-test-file --whitelist=/media/firejail-test-dir --debug\r" 61send -- "firejail --whitelist=/media/firejail-test-file --whitelist=/media/firejail-test-dir --debug\r"
62expect { 62expect {
63 timeout {puts "TESTING ERROR 4\n";exit} 63 timeout {puts "TESTING ERROR 4\n";exit}
64 "Child process initialized" 64 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
65} 65}
66sleep 1 66sleep 1
67 67
@@ -78,7 +78,7 @@ sleep 1
78send -- "firejail --whitelist=/var/run --whitelist=/var/lock --debug\r" 78send -- "firejail --whitelist=/var/run --whitelist=/var/lock --debug\r"
79expect { 79expect {
80 timeout {puts "TESTING ERROR 6\n";exit} 80 timeout {puts "TESTING ERROR 6\n";exit}
81 "Child process initialized" 81 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
82} 82}
83sleep 1 83sleep 1
84 84
@@ -100,7 +100,7 @@ after 100
100send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r" 100send -- "firejail --whitelist=/srv/firejail-test-file --whitelist=/srv/firejail-test-dir --debug\r"
101expect { 101expect {
102 timeout {puts "TESTING ERROR 8\n";exit} 102 timeout {puts "TESTING ERROR 8\n";exit}
103 "Child process initialized" 103 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
104} 104}
105sleep 1 105sleep 1
106 106