aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-05 18:35:24 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-05 18:35:24 -0400
commitc95c03e2fe90893c7d6d3f02499f46960e2ebcff (patch)
tree1ff01bb6f24f813a986ac0deb0f45b61bcbc0b7e /test
parentgrsecurity: --caps.print (diff)
downloadfirejail-c95c03e2fe90893c7d6d3f02499f46960e2ebcff.tar.gz
firejail-c95c03e2fe90893c7d6d3f02499f46960e2ebcff.tar.zst
firejail-c95c03e2fe90893c7d6d3f02499f46960e2ebcff.zip
grsecurity: --seccomp.print
Diffstat (limited to 'test')
-rwxr-xr-xtest/seccomp-print.exp33
-rwxr-xr-xtest/test.sh3
2 files changed, 36 insertions, 0 deletions
diff --git a/test/seccomp-print.exp b/test/seccomp-print.exp
new file mode 100755
index 000000000..b4e6ed35e
--- /dev/null
+++ b/test/seccomp-print.exp
@@ -0,0 +1,33 @@
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 --seccomp.print=test\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "EXAMINE_SYSCAL"
19}
20expect {
21 timeout {puts "TESTING ERROR 2\n";exit}
22 "init_module"
23}
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "delete_module"
27}
28expect {
29 timeout {puts "TESTING ERROR 4\n";exit}
30 "RETURN_ALLOW"
31}
32sleep 1
33puts "\nall done\n"
diff --git a/test/test.sh b/test/test.sh
index 99ca4287d..34a079d07 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -9,6 +9,9 @@
9echo "TESTING: caps.print (caps-print.exp) 9echo "TESTING: caps.print (caps-print.exp)
10./caps-print.exp 10./caps-print.exp
11 11
12echo "TESTING: seccomp.print (seccomp-print.exp)
13./seccomp-print.exp
14
12echo "TESTING: sound (sound.exp)" 15echo "TESTING: sound (sound.exp)"
13./sound.exp 16./sound.exp
14 17