diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-13 20:35:12 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-13 20:35:12 -0500 |
commit | 2f8688a17eb9f20d15b1ac53cb58c2759987ed71 (patch) | |
tree | fee7cf10a8f7c45f0d34ce3535801b2ee256dee8 /test/root | |
parent | major cleanup and testing (diff) | |
download | firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.tar.gz firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.tar.zst firejail-2f8688a17eb9f20d15b1ac53cb58c2759987ed71.zip |
testing
Diffstat (limited to 'test/root')
-rwxr-xr-x | test/root/apache2.exp | 4 | ||||
-rwxr-xr-x | test/root/isc-dhcp.exp | 9 | ||||
-rwxr-xr-x | test/root/nginx.exp | 4 | ||||
-rwxr-xr-x | test/root/root.sh | 6 | ||||
-rwxr-xr-x | test/root/snmpd.exp | 10 | ||||
-rwxr-xr-x | test/root/unbound.exp | 9 |
6 files changed, 6 insertions, 36 deletions
diff --git a/test/root/apache2.exp b/test/root/apache2.exp index 7f67f4706..0b102bad5 100755 --- a/test/root/apache2.exp +++ b/test/root/apache2.exp | |||
@@ -4,10 +4,6 @@ set timeout 5 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "pkill apache\r" | ||
8 | sleep 2 | ||
9 | |||
10 | |||
11 | send -- "firejail --name=apache /etc/init.d/apache2 start\r" | 7 | send -- "firejail --name=apache /etc/init.d/apache2 start\r" |
12 | expect { | 8 | expect { |
13 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
diff --git a/test/root/isc-dhcp.exp b/test/root/isc-dhcp.exp index 86500707a..5d9597e7c 100755 --- a/test/root/isc-dhcp.exp +++ b/test/root/isc-dhcp.exp | |||
@@ -4,15 +4,6 @@ set timeout 5 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "sudo ls; sudo whoami; sudo pwd\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} | ||
10 | "root" | ||
11 | } | ||
12 | |||
13 | send -- "pkill dhcpd\r" | ||
14 | sleep 2 | ||
15 | |||
16 | send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" | 7 | send -- "firejail --name=dhcpd /etc/init.d/isc-dhcp-server start\r" |
17 | expect { | 8 | expect { |
18 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
diff --git a/test/root/nginx.exp b/test/root/nginx.exp index 0b62fada9..82ebe0ee7 100755 --- a/test/root/nginx.exp +++ b/test/root/nginx.exp | |||
@@ -4,10 +4,6 @@ set timeout 5 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "pkill nginx\r" | ||
8 | sleep 2 | ||
9 | |||
10 | |||
11 | send -- "firejail --name=nginx /etc/init.d/nginx start\r" | 7 | send -- "firejail --name=nginx /etc/init.d/nginx start\r" |
12 | expect { | 8 | expect { |
13 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
diff --git a/test/root/root.sh b/test/root/root.sh index 471b7d535..494bd4fe7 100755 --- a/test/root/root.sh +++ b/test/root/root.sh | |||
@@ -48,6 +48,12 @@ else | |||
48 | fi | 48 | fi |
49 | 49 | ||
50 | #******************************** | 50 | #******************************** |
51 | # filesystem | ||
52 | #******************************** | ||
53 | echo "TESTING: fs private (test/root/private.exp)" | ||
54 | ./private.exp | ||
55 | |||
56 | #******************************** | ||
51 | # seccomp | 57 | # seccomp |
52 | #******************************** | 58 | #******************************** |
53 | echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)" | 59 | echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)" |
diff --git a/test/root/snmpd.exp b/test/root/snmpd.exp index 90e34470f..610fdb13a 100755 --- a/test/root/snmpd.exp +++ b/test/root/snmpd.exp | |||
@@ -4,16 +4,6 @@ set timeout 5 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "sudo ls; sudo whoami; sudo pwd\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} | ||
10 | "root" | ||
11 | } | ||
12 | |||
13 | send -- "pkill snmpd\r" | ||
14 | sleep 2 | ||
15 | |||
16 | |||
17 | send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" | 7 | send -- "firejail --name=snmpd /etc/init.d/snmpd start\r" |
18 | expect { | 8 | expect { |
19 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
diff --git a/test/root/unbound.exp b/test/root/unbound.exp index 193e662ff..9c496306a 100755 --- a/test/root/unbound.exp +++ b/test/root/unbound.exp | |||
@@ -4,15 +4,6 @@ set timeout 5 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "sudo ls; sudo whoami; sudo pwd\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} | ||
10 | "root" | ||
11 | } | ||
12 | |||
13 | send -- "pkill unbound\r" | ||
14 | sleep 2 | ||
15 | |||
16 | send -- "firejail --name=unbound unbound\r" | 7 | send -- "firejail --name=unbound unbound\r" |
17 | expect { | 8 | expect { |
18 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |