From 10c7565f9d414d745122dac2e441f5e816db7843 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 5 Apr 2016 13:17:20 -0400 Subject: grsecurity: --caps.print --- test/caps-print.exp | 29 +++++++++++++++++++++++++++++ test/test.sh | 3 +++ 2 files changed, 32 insertions(+) create mode 100755 test/caps-print.exp (limited to 'test') diff --git a/test/caps-print.exp b/test/caps-print.exp new file mode 100755 index 000000000..39e5ec50a --- /dev/null +++ b/test/caps-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 --caps.print=test\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "setgid - disabled" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "setuid - disabled" +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "net_raw - disabled" +} +sleep 1 +puts "\nall done\n" diff --git a/test/test.sh b/test/test.sh index 2dcb89f2a..99ca4287d 100755 --- a/test/test.sh +++ b/test/test.sh @@ -6,6 +6,9 @@ ./fscheck.sh +echo "TESTING: caps.print (caps-print.exp) +./caps-print.exp + echo "TESTING: sound (sound.exp)" ./sound.exp -- cgit v1.2.3-70-g09d2