From 3eb4b71a6d62c30899e9d58379c2a5c5fa171b10 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 23 Mar 2016 09:29:27 -0400 Subject: testing --- test/features/1.8.exp | 90 ++++++++++++++++++++++++++++++++++++++++++++++ test/features/features.txt | 2 +- test/features/test.sh | 2 +- 3 files changed, 92 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/features/1.8.exp b/test/features/1.8.exp index d937f4f12..dd525df49 100755 --- a/test/features/1.8.exp +++ b/test/features/1.8.exp @@ -32,6 +32,36 @@ expect { "Permission denied" } after 100 +send -- "ls /run/firejail/bandwidth\r" +expect { + timeout {puts "TESTING ERROR 1.2\n";exit} + "Permission denied" +} +after 100 +#send -- "ls /run/firejail/mnt\r" +#expect { +# timeout {puts "TESTING ERROR 1.3\n";exit} +# "Permission denied" +#} +#after 100 +send -- "ls /run/firejail/name\r" +expect { + timeout {puts "TESTING ERROR 1.4\n";exit} + "Permission denied" +} +after 100 +send -- "ls /run/firejail/network\r" +expect { + timeout {puts "TESTING ERROR 1.5\n";exit} + "Permission denied" +} +after 100 +send -- "ls /run/firejail/x11\r" +expect { + timeout {puts "TESTING ERROR 1.6\n";exit} + "Permission denied" +} +after 100 send -- "exit\r" sleep 1 @@ -58,6 +88,36 @@ if { $overlay == "overlay" } { "Permission denied" } after 100 + send -- "ls /run/firejail/bandwidth\r" + expect { + timeout {puts "TESTING ERROR 3.2\n";exit} + "Permission denied" + } + after 100 + #send -- "ls /run/firejail/mnt\r" + #expect { + # timeout {puts "TESTING ERROR 3.3\n";exit} + # "Permission denied" + #} + #after 100 + send -- "ls /run/firejail/name\r" + expect { + timeout {puts "TESTING ERROR 3.4\n";exit} + "Permission denied" + } + after 100 + send -- "ls /run/firejail/network\r" + expect { + timeout {puts "TESTING ERROR 3.5\n";exit} + "Permission denied" + } + after 100 + send -- "ls /run/firejail/x11\r" + expect { + timeout {puts "TESTING ERROR 3.6\n";exit} + "Permission denied" + } + after 100 send -- "exit\r" sleep 1 @@ -85,6 +145,36 @@ if { $chroot == "chroot" } { "Permission denied" } after 100 + send -- "ls /run/firejail/bandwidth\r" + expect { + timeout {puts "TESTING ERROR 5.2\n";exit} + "Permission denied" + } + after 100 + #send -- "ls /run/firejail/mnt\r" + #expect { + # timeout {puts "TESTING ERROR 5.3\n";exit} + # "Permission denied" + #} + #after 100 + send -- "ls /run/firejail/name\r" + expect { + timeout {puts "TESTING ERROR 5.4\n";exit} + "Permission denied" + } + after 100 + send -- "ls /run/firejail/network\r" + expect { + timeout {puts "TESTING ERROR 5.5\n";exit} + "Permission denied" + } + after 100 + send -- "ls /run/firejail/x11\r" + expect { + timeout {puts "TESTING ERROR 5.6\n";exit} + "Permission denied" + } + after 100 send -- "exit\r" sleep 1 } diff --git a/test/features/features.txt b/test/features/features.txt index 283e85d93..b793257c3 100644 --- a/test/features/features.txt +++ b/test/features/features.txt @@ -21,7 +21,7 @@ C - chroot filesystem 1.5 PID namespace 1.6 new /var/log 1.7 new /var/tmp -1.8 disable /etc/firejail and ~/.config/firejail +1.8 disable firejail config and run time information 1.9 mount namespace 1.10 disable /selinux diff --git a/test/features/test.sh b/test/features/test.sh index 3570dae5a..f28da37d5 100755 --- a/test/features/test.sh +++ b/test/features/test.sh @@ -50,7 +50,7 @@ echo "TESTING: 1.6 new /var/log" echo "TESTING: 1.7 new /var/tmp" ./1.7.exp $OVERLAY $CHROOT -echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" +echo "TESTING: 1.8 disable firejail config and run time information" ./1.8.exp $OVERLAY $CHROOT echo "TESTING: 1.10 disable /selinux" -- cgit v1.2.3-54-g00ecf