From 1c539a83dd277a7627af995f90565dadc73872a2 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 19 Nov 2016 07:10:51 -0500 Subject: testing --- test/fs/private-bin.exp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/fs/private-bin.exp') 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 { "sh" } send -- "exit\r" +after 100 + + +send -- "firejail --private-bin=/etc/shadow\r" +expect { + timeout {puts "TESTING ERROR 8\n";exit} + "invalid filename" +} +after 100 + +send -- "firejail --private-bin=\"bla;bla\"\r" +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "is an invalid filename" +} +after 100 + +send -- "firejail --private-etc=../bin/ls\r" +expect { + timeout {puts "TESTING ERROR 10\n";exit} + "is an invalid filename" +} after 100 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf