aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-05 13:17:20 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-05 13:17:20 -0400
commit10c7565f9d414d745122dac2e441f5e816db7843 (patch)
treed6e56dacb20561abeb59c3bebd2ca857f4c35112 /test
parentfirecfg fixes (diff)
downloadfirejail-10c7565f9d414d745122dac2e441f5e816db7843.tar.gz
firejail-10c7565f9d414d745122dac2e441f5e816db7843.tar.zst
firejail-10c7565f9d414d745122dac2e441f5e816db7843.zip
grsecurity: --caps.print
Diffstat (limited to 'test')
-rwxr-xr-xtest/caps-print.exp29
-rwxr-xr-xtest/test.sh3
2 files changed, 32 insertions, 0 deletions
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 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=test\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 2
13
14spawn $env(SHELL)
15send -- "firejail --caps.print=test\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "setgid - disabled"
19}
20expect {
21 timeout {puts "TESTING ERROR 2\n";exit}
22 "setuid - disabled"
23}
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "net_raw - disabled"
27}
28sleep 1
29puts "\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 @@
6 6
7./fscheck.sh 7./fscheck.sh
8 8
9echo "TESTING: caps.print (caps-print.exp)
10./caps-print.exp
11
9echo "TESTING: sound (sound.exp)" 12echo "TESTING: sound (sound.exp)"
10./sound.exp 13./sound.exp
11 14