aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-08-27 08:04:35 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-08-27 08:04:35 -0400
commit4861cca38fcb73bae53f85ff8369c6acd535460e (patch)
tree2e190fa26c6df7dcc777636f36be7ff25254e475 /test
parent--private-bin: restrict full paths to the directories in the list (diff)
downloadfirejail-4861cca38fcb73bae53f85ff8369c6acd535460e.tar.gz
firejail-4861cca38fcb73bae53f85ff8369c6acd535460e.tar.zst
firejail-4861cca38fcb73bae53f85ff8369c6acd535460e.zip
cleanup
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs/private-bin.exp14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/fs/private-bin.exp b/test/fs/private-bin.exp
index d4cdc3a36..8403b8442 100755
--- a/test/fs/private-bin.exp
+++ b/test/fs/private-bin.exp
@@ -60,31 +60,31 @@ expect {
60 60
61send -- "ls /bin\r" 61send -- "ls /bin\r"
62expect { 62expect {
63 timeout {puts "TESTING ERROR 5\n";exit} 63 timeout {puts "TESTING ERROR 11\n";exit}
64 "ping" {puts "TESTING ERROR 6\n";exit} 64 "ping" {puts "TESTING ERROR 12\n";exit}
65 "sh" 65 "sh"
66} 66}
67send -- "exit\r" 67send -- "exit\r"
68after 100 68after 100
69 69
70 70
71send -- "firejail --private-bin=/etc/shadow\r" 71send -- "firejail --debug --private-bin=/etc/shadow \r"
72expect { 72expect {
73 timeout {puts "TESTING ERROR 8\n";exit} 73 timeout {puts "TESTING ERROR 13\n";exit}
74 "invalid filename" 74 "Warning: file /etc/shadow not found"
75} 75}
76after 100 76after 100
77 77
78send -- "firejail --private-bin=\"bla;bla\"\r" 78send -- "firejail --private-bin=\"bla;bla\"\r"
79expect { 79expect {
80 timeout {puts "TESTING ERROR 9\n";exit} 80 timeout {puts "TESTING ERROR 14\n";exit}
81 "is an invalid filename" 81 "is an invalid filename"
82} 82}
83after 100 83after 100
84 84
85send -- "firejail --private-etc=../bin/ls\r" 85send -- "firejail --private-etc=../bin/ls\r"
86expect { 86expect {
87 timeout {puts "TESTING ERROR 10\n";exit} 87 timeout {puts "TESTING ERROR 15\n";exit}
88 "is an invalid filename" 88 "is an invalid filename"
89} 89}
90 90