aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-19 07:10:51 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-19 07:10:51 -0500
commit1c539a83dd277a7627af995f90565dadc73872a2 (patch)
tree493b6338c165354e9d6fd983542d700ad01c041e /test/fs
parentMerge pull request #916 from valoq/master (diff)
downloadfirejail-1c539a83dd277a7627af995f90565dadc73872a2.tar.gz
firejail-1c539a83dd277a7627af995f90565dadc73872a2.tar.zst
firejail-1c539a83dd277a7627af995f90565dadc73872a2.zip
testing
Diffstat (limited to 'test/fs')
-rwxr-xr-xtest/fs/private-bin.exp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/fs/private-bin.exp b/test/fs/private-bin.exp
index fe9468be9..f7181d218 100755
--- a/test/fs/private-bin.exp
+++ b/test/fs/private-bin.exp
@@ -65,6 +65,28 @@ expect {
65 "sh" 65 "sh"
66} 66}
67send -- "exit\r" 67send -- "exit\r"
68after 100
69
70
71send -- "firejail --private-bin=/etc/shadow\r"
72expect {
73 timeout {puts "TESTING ERROR 8\n";exit}
74 "invalid filename"
75}
76after 100
77
78send -- "firejail --private-bin=\"bla;bla\"\r"
79expect {
80 timeout {puts "TESTING ERROR 9\n";exit}
81 "is an invalid filename"
82}
83after 100
84
85send -- "firejail --private-etc=../bin/ls\r"
86expect {
87 timeout {puts "TESTING ERROR 10\n";exit}
88 "is an invalid filename"
89}
68 90
69after 100 91after 100
70puts "\nall done\n" 92puts "\nall done\n"