From 1379851360349d6617ad32944a25ee5e2bb74fc2 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 8 Aug 2015 19:12:30 -0400 Subject: Baseline firejail 0.9.28 --- test/seccomp-bad-empty.exp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 test/seccomp-bad-empty.exp (limited to 'test/seccomp-bad-empty.exp') diff --git a/test/seccomp-bad-empty.exp b/test/seccomp-bad-empty.exp new file mode 100755 index 000000000..53b5c2e21 --- /dev/null +++ b/test/seccomp-bad-empty.exp @@ -0,0 +1,38 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --seccomp=\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Error: empty syscall lists are not allowed" +} + +send -- "firejail --seccomp.drop=\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Error: empty syscall lists are not allowed" +} + +send -- "firejail --seccomp.keep=\r" +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Error: empty syscall lists are not allowed" +} + +send -- "firejail --profile=seccomp-bad-empty.profile\r" +expect { + timeout {puts "TESTING ERROR 6\n";exit} + "Error: line 1 in the custom profile is invalid" +} + +send -- "firejail --profile=seccomp-bad-empty2.profile\r" +expect { + timeout {puts "TESTING ERROR 7\n";exit} + "Error: line 1 in the custom profile is invalid" +} +sleep 1 +puts "\n" + -- cgit v1.2.3-70-g09d2