From fc116c063938d5e141d5fbc38e8013d9832ef315 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 15 Sep 2016 09:59:11 -0400 Subject: testing --- test/filters/filters.sh | 2 +- test/filters/seccomp-su.exp | 2 +- test/filters/seccomp-umount.exp | 31 ------------------------------- 3 files changed, 2 insertions(+), 33 deletions(-) delete mode 100755 test/filters/seccomp-umount.exp (limited to 'test/filters') diff --git a/test/filters/filters.sh b/test/filters/filters.sh index 67b9f2c0d..5093c8614 100755 --- a/test/filters/filters.sh +++ b/test/filters/filters.sh @@ -45,7 +45,7 @@ echo "TESTING: seccomp chmod - seccomp lists (test/filters/seccomp-chmod.exp)" echo "TESTING: seccomp chmod profile - seccomp lists (test/filters/seccomp-chmod-profile.exp)" ./seccomp-chmod-profile.exp -# todo: fix pwd and add seccomp-chown.exp and seccomp-umount.exp +# todo: fix pwd and add seccomp-chown.exp echo "TESTING: seccomp empty (test/filters/seccomp-empty.exp)" ./seccomp-empty.exp diff --git a/test/filters/seccomp-su.exp b/test/filters/seccomp-su.exp index 7833c69b0..3feabc20f 100755 --- a/test/filters/seccomp-su.exp +++ b/test/filters/seccomp-su.exp @@ -30,7 +30,7 @@ expect { send -- "ping google.com\r" expect { - timeout {puts "TESTING ERROR 2\n";exit} + timeout {puts "TESTING ERROR 3\n";exit} "Operation not permitted" {puts "OK\n"} "unknown host" {puts "OK\n"} } diff --git a/test/filters/seccomp-umount.exp b/test/filters/seccomp-umount.exp deleted file mode 100755 index df38dba5e..000000000 --- a/test/filters/seccomp-umount.exp +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 -- "sudo ls; sudo whoami; sudo pwd\r" -expect { - timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} - "root" -} - -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-54-g00ecf