diff options
Diffstat (limited to 'test/fs/whitelist-readonly.exp')
-rwxr-xr-x | test/fs/whitelist-readonly.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/fs/whitelist-readonly.exp b/test/fs/whitelist-readonly.exp index e5c9cc400..f9d78b7c0 100755 --- a/test/fs/whitelist-readonly.exp +++ b/test/fs/whitelist-readonly.exp | |||
@@ -7,6 +7,14 @@ set timeout 10 | |||
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "mkdir ~/_firejail_test_dir\r" | ||
11 | after 100 | ||
12 | send -- "touch ~/_firejail_test_dir/a\r" | ||
13 | after 100 | ||
14 | send -- "mkdir ~/_firejail_test_dir/test1\r" | ||
15 | after 100 | ||
16 | send -- "touch ~/_firejail_test_dir/test1/b\r" | ||
17 | after 100 | ||
10 | 18 | ||
11 | send -- "firejail --noprofile --whitelist=~/_firejail_test_dir --read-only=~\r" | 19 | send -- "firejail --noprofile --whitelist=~/_firejail_test_dir --read-only=~\r" |
12 | expect { | 20 | expect { |
@@ -25,4 +33,6 @@ after 100 | |||
25 | send -- "exit\r" | 33 | send -- "exit\r" |
26 | sleep 1 | 34 | sleep 1 |
27 | 35 | ||
36 | send -- "rm -fr ~/_firejail_test_dir\r" | ||
37 | after 100 | ||
28 | puts "\nall done\n" | 38 | puts "\nall done\n" |