From ef8e8c1a5a9e15051e7aeed859526e7bbbfad550 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 6 Apr 2016 10:19:16 -0400 Subject: grsecurity: fs.print --- test/fs-print.exp | 29 +++++++++++++++++++++++++++++ test/test.sh | 3 +++ 2 files changed, 32 insertions(+) create mode 100755 test/fs-print.exp (limited to 'test') diff --git a/test/fs-print.exp b/test/fs-print.exp new file mode 100755 index 000000000..48056a3bf --- /dev/null +++ b/test/fs-print.exp @@ -0,0 +1,29 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --name=test\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 2 + +spawn $env(SHELL) +send -- "firejail --fs.print=test\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "blacklist /boot" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "blacklist /dev/kmsg" +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "blacklist /proc/kmsg" +} +sleep 1 +puts "\nall done\n" diff --git a/test/test.sh b/test/test.sh index c8720044a..417d41810 100755 --- a/test/test.sh +++ b/test/test.sh @@ -6,6 +6,9 @@ ./fscheck.sh +echo "TESTING: fs.print (fs-print.exp)" +./fs-print.exp + echo "TESTING: caps.print (caps-print.exp)" ./caps-print.exp -- cgit v1.2.3-54-g00ecf