diff options
Diffstat (limited to 'test/fs')
-rwxr-xr-x | test/fs/whitelist-dev.exp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/test/fs/whitelist-dev.exp b/test/fs/whitelist-dev.exp index fca3fdfe5..b064671b6 100755 --- a/test/fs/whitelist-dev.exp +++ b/test/fs/whitelist-dev.exp | |||
@@ -23,6 +23,22 @@ after 100 | |||
23 | send -- "exit\r" | 23 | send -- "exit\r" |
24 | sleep 1 | 24 | sleep 1 |
25 | 25 | ||
26 | send -- "firejail --whitelist=/dev/null --whitelist=/dev/shm --whitelist=/dev/random\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 0\n";exit} | ||
29 | "Child process initialized" | ||
30 | } | ||
31 | sleep 1 | ||
32 | |||
33 | send -- "find /dev | wc -l\r" | ||
34 | expect { | ||
35 | timeout {puts "TESTING ERROR 0.1\n";exit} | ||
36 | "4" | ||
37 | } | ||
38 | after 100 | ||
39 | send -- "exit\r" | ||
40 | sleep 1 | ||
41 | |||
26 | send -- "firejail --private-dev --debug\r" | 42 | send -- "firejail --private-dev --debug\r" |
27 | expect { | 43 | expect { |
28 | timeout {puts "TESTING ERROR 2\n";exit} | 44 | timeout {puts "TESTING ERROR 2\n";exit} |
@@ -33,8 +49,13 @@ sleep 1 | |||
33 | send -- "ls -l /dev | wc -l\r" | 49 | send -- "ls -l /dev | wc -l\r" |
34 | expect { | 50 | expect { |
35 | timeout {puts "TESTING ERROR 3\n";exit} | 51 | timeout {puts "TESTING ERROR 3\n";exit} |
36 | "18" {puts "OK\n"} | 52 | "12" {puts "OK\n"} |
53 | "13" {puts "OK\n"} | ||
54 | "14" {puts "OK\n"} | ||
55 | "15" {puts "OK\n"} | ||
56 | "16" {puts "OK\n"} | ||
37 | "17" {puts "OK\n"} | 57 | "17" {puts "OK\n"} |
58 | "18" {puts "OK\n"} | ||
38 | } | 59 | } |
39 | after 100 | 60 | after 100 |
40 | 61 | ||