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/profile_syntax2.exp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 test/profile_syntax2.exp (limited to 'test/profile_syntax2.exp') diff --git a/test/profile_syntax2.exp b/test/profile_syntax2.exp new file mode 100755 index 000000000..cd514aa0e --- /dev/null +++ b/test/profile_syntax2.exp @@ -0,0 +1,47 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --debug --profile=test2.profile\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Reading profile test2.profile" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Reading profile test.profile" +} +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Disable /bin/rmdir" {puts "Most Linux platforms\n"} + "Disable /usr/bin/rmdir" { puts "OpenSUSE platform\n"} +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "Mounting a new /home directory" +} +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "Drop CAP_SYS_MODULE" +} +expect { + timeout {puts "TESTING ERROR 5\n";exit} + "Initialize seccomp filter" +} +expect { + timeout {puts "TESTING ERROR 6\n";exit} + "Blacklisting syscall" +} +expect { + timeout {puts "TESTING ERROR 7\n";exit} + "mount" +} +expect { + timeout {puts "TESTING ERROR 8\n";exit} + "Child process initialized" +} + +sleep 1 +puts "\n" -- cgit v1.2.3-54-g00ecf