diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-06 10:14:35 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-06 10:14:35 -0400 |
commit | ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c (patch) | |
tree | 8d732ddadcb0c320744c2417a5845aa3113c7b9e /test | |
parent | grsecurity: --seccomp.print (diff) | |
download | firejail-ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c.tar.gz firejail-ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c.tar.zst firejail-ad9cb9724701e5aba9e90d3dbf00f9b89e335e3c.zip |
grsecurity: --protocol.print
Diffstat (limited to 'test')
-rwxr-xr-x | test/protocol-print.exp | 21 | ||||
-rwxr-xr-x | test/test.sh | 7 |
2 files changed, 26 insertions, 2 deletions
diff --git a/test/protocol-print.exp b/test/protocol-print.exp new file mode 100755 index 000000000..4d1ae34d6 --- /dev/null +++ b/test/protocol-print.exp | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=test\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 2 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --protocol.print=test\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "unix,inet,inet6" | ||
19 | } | ||
20 | sleep 1 | ||
21 | puts "\nall done\n" | ||
diff --git a/test/test.sh b/test/test.sh index 34a079d07..c8720044a 100755 --- a/test/test.sh +++ b/test/test.sh | |||
@@ -6,12 +6,15 @@ | |||
6 | 6 | ||
7 | ./fscheck.sh | 7 | ./fscheck.sh |
8 | 8 | ||
9 | echo "TESTING: caps.print (caps-print.exp) | 9 | echo "TESTING: caps.print (caps-print.exp)" |
10 | ./caps-print.exp | 10 | ./caps-print.exp |
11 | 11 | ||
12 | echo "TESTING: seccomp.print (seccomp-print.exp) | 12 | echo "TESTING: seccomp.print (seccomp-print.exp)" |
13 | ./seccomp-print.exp | 13 | ./seccomp-print.exp |
14 | 14 | ||
15 | echo "TESTING: protocol.print (protocol-print.exp)" | ||
16 | ./protocol-print.exp | ||
17 | |||
15 | echo "TESTING: sound (sound.exp)" | 18 | echo "TESTING: sound (sound.exp)" |
16 | ./sound.exp | 19 | ./sound.exp |
17 | 20 | ||