aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/private-lib.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs/private-lib.exp')
-rwxr-xr-xtest/fs/private-lib.exp11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp
index fd127bdb3..20d480062 100755
--- a/test/fs/private-lib.exp
+++ b/test/fs/private-lib.exp
@@ -3,27 +3,30 @@
3# Copyright (C) 2014-2017 Firejail Authors 3# Copyright (C) 2014-2017 Firejail Authors
4# License GPL v2 4# License GPL v2
5 5
6
6set timeout 10 7set timeout 10
7spawn $env(SHELL) 8spawn $env(SHELL)
8match_max 100000 9match_max 100000
9 10
10send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo \r" 11send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty \r"
11expect { 12expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 13 timeout {puts "TESTING ERROR 1\n";exit}
13 "Child process initialized" 14 "Child process initialized"
14} 15}
15after 100 16after 100
17send -- "stty -echo\r"
16 18
17send -- "cd /bin; find .; echo done\r" 19send -- "cd /bin; find .\; echo done\r"
18expect { 20expect {
19 timeout {puts "TESTING ERROR 2\n";exit} 21 timeout {puts "TESTING ERROR 2\n";exit}
22# "grep" {puts "TESTING ERROR 3\n";exit}
20 "rm" {puts "TESTING ERROR 3\n";exit} 23 "rm" {puts "TESTING ERROR 3\n";exit}
21 "cp" {puts "TESTING ERROR 4\n";exit} 24 "cp" {puts "TESTING ERROR 4\n";exit}
22 "done" 25 "done"
23} 26}
24after 100 27after 100
25 28
26send -- "cd /lib; find .; echo done\r" 29send -- "cd /lib; find .\r"
27expect { 30expect {
28 timeout {puts "TESTING ERROR 5\n";exit} 31 timeout {puts "TESTING ERROR 5\n";exit}
29 "modules" {puts "TESTING ERROR 6\n";exit} 32 "modules" {puts "TESTING ERROR 6\n";exit}
@@ -32,7 +35,7 @@ expect {
32} 35}
33after 100 36after 100
34 37
35send -- "cd /usr/lib; find .; echo done\r" 38send -- "cd /usr/lib; find .\r"
36expect { 39expect {
37 timeout {puts "TESTING ERROR 8\n";exit} 40 timeout {puts "TESTING ERROR 8\n";exit}
38 "grub" {puts "TESTING ERROR 9\n";exit} 41 "grub" {puts "TESTING ERROR 9\n";exit}