From fc116c063938d5e141d5fbc38e8013d9832ef315 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 15 Sep 2016 09:59:11 -0400 Subject: testing --- test/root/seccomp-umount.exp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test/root/seccomp-umount.exp (limited to 'test/root/seccomp-umount.exp') diff --git a/test/root/seccomp-umount.exp b/test/root/seccomp-umount.exp new file mode 100755 index 000000000..04a9b7a3d --- /dev/null +++ b/test/root/seccomp-umount.exp @@ -0,0 +1,25 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --net=br0 --ip=10.10.20.5 --seccomp --noprofile\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 2 + +send -- "umount /proc\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Bad system call" +} + +send -- "exit\r" +after 100 +puts "\n" -- cgit v1.2.3-70-g09d2