diff options
author | netblue30 <netblue30@yahoo.com> | 2016-09-15 09:59:11 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-09-15 09:59:11 -0400 |
commit | fc116c063938d5e141d5fbc38e8013d9832ef315 (patch) | |
tree | 382b401cc0a9efeda1509a88bd430cd68b741346 /test/root/seccomp-umount.exp | |
parent | fixed /etc/login.def reading on Mageia systems (diff) | |
download | firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.gz firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.zst firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.zip |
testing
Diffstat (limited to 'test/root/seccomp-umount.exp')
-rwxr-xr-x | test/root/seccomp-umount.exp | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --net=br0 --ip=10.10.20.5 --seccomp --noprofile\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Child process initialized" | ||
14 | } | ||
15 | sleep 2 | ||
16 | |||
17 | send -- "umount /proc\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 1\n";exit} | ||
20 | "Bad system call" | ||
21 | } | ||
22 | |||
23 | send -- "exit\r" | ||
24 | after 100 | ||
25 | puts "\n" | ||