diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-05 12:08:44 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-05 12:08:44 -0400 |
commit | e3a306f51bf6d76c9c8d40deeecb0ec0147624ff (patch) | |
tree | a0fb54c3f72a0939d19d7e988d647cc3db24ee51 /test/features/2.6.exp | |
parent | grsecurity: --overlay (diff) | |
download | firejail-e3a306f51bf6d76c9c8d40deeecb0ec0147624ff.tar.gz firejail-e3a306f51bf6d76c9c8d40deeecb0ec0147624ff.tar.zst firejail-e3a306f51bf6d76c9c8d40deeecb0ec0147624ff.zip |
grsecurity: testing
Diffstat (limited to 'test/features/2.6.exp')
-rwxr-xr-x | test/features/2.6.exp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/test/features/2.6.exp b/test/features/2.6.exp index f3eea2fd6..596e8f435 100755 --- a/test/features/2.6.exp +++ b/test/features/2.6.exp | |||
@@ -12,17 +12,17 @@ set chroot [lindex $argv 1] | |||
12 | # | 12 | # |
13 | # N | 13 | # N |
14 | # | 14 | # |
15 | send -- "firejail --noprofile --net=eth0 --defaultgw=192.168.1.10\r" | 15 | send -- "firejail --noprofile --net=eth0 --defaultgw=192.168.1.10 --protocol=unix,inet,netlink\r" |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 0\n";exit} | 17 | timeout {puts "TESTING ERROR 0\n";exit} |
18 | "Child process initialized" | 18 | "Child process initialized" |
19 | } | 19 | } |
20 | sleep 1 | 20 | sleep 1 |
21 | 21 | ||
22 | send -- "netstat -rn\r" | 22 | send -- "ip route show\r" |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 1\n";exit} | 24 | timeout {puts "TESTING ERROR 1\n";exit} |
25 | "0.0.0.0 192.168.1.10" | 25 | "default via 192.168.1.10 dev eth0" |
26 | } | 26 | } |
27 | after 100 | 27 | after 100 |
28 | send -- "exit\r" | 28 | send -- "exit\r" |
@@ -32,17 +32,18 @@ sleep 1 | |||
32 | # O | 32 | # O |
33 | # | 33 | # |
34 | if { $overlay == "overlay" } { | 34 | if { $overlay == "overlay" } { |
35 | send -- "firejail --noprofile --overlay --net=eth0 --defaultgw=192.168.1.10\r" | 35 | send -- "firejail --noprofile --overlay --net=eth0 --defaultgw=192.168.1.10 --protocol=unix,inet,netlink\r" |
36 | expect { | 36 | expect { |
37 | timeout {puts "TESTING ERROR 2\n";exit} | 37 | timeout {puts "TESTING ERROR 2\n";exit} |
38 | "Child process initialized" | 38 | "overlay option is not available" {puts "grsecurity\n"; exit} |
39 | "Child process initialized" {puts "normal system\n"} | ||
39 | } | 40 | } |
40 | sleep 1 | 41 | sleep 1 |
41 | 42 | ||
42 | send -- "netstat -rn\r" | 43 | send -- "ip route show\r" |
43 | expect { | 44 | expect { |
44 | timeout {puts "TESTING ERROR 3\n";exit} | 45 | timeout {puts "TESTING ERROR 3\n";exit} |
45 | "0.0.0.0 192.168.1.10" | 46 | "default via 192.168.1.10 dev eth0" |
46 | } | 47 | } |
47 | after 100 | 48 | after 100 |
48 | send -- "exit\r" | 49 | send -- "exit\r" |
@@ -53,17 +54,17 @@ if { $overlay == "overlay" } { | |||
53 | # C | 54 | # C |
54 | # | 55 | # |
55 | if { $chroot == "chroot" } { | 56 | if { $chroot == "chroot" } { |
56 | send -- "firejail --noprofile --chroot=/tmp/chroot --net=eth0 --defaultgw=192.168.1.10\r" | 57 | send -- "firejail --noprofile --chroot=/tmp/chroot --net=eth0 --defaultgw=192.168.1.10 --protocol=unix,inet,netlink\r" |
57 | expect { | 58 | expect { |
58 | timeout {puts "TESTING ERROR 4\n";exit} | 59 | timeout {puts "TESTING ERROR 4\n";exit} |
59 | "Child process initialized" | 60 | "Child process initialized" |
60 | } | 61 | } |
61 | sleep 1 | 62 | sleep 1 |
62 | 63 | ||
63 | send -- "netstat -rn\r" | 64 | send -- "ip route show\r" |
64 | expect { | 65 | expect { |
65 | timeout {puts "TESTING ERROR 5\n";exit} | 66 | timeout {puts "TESTING ERROR 5\n";exit} |
66 | "0.0.0.0 192.168.1.10" | 67 | "default via 192.168.1.10 dev eth0" |
67 | } | 68 | } |
68 | after 100 | 69 | after 100 |
69 | send -- "exit\r" | 70 | send -- "exit\r" |