diff options
author | 2016-04-30 07:27:31 -0400 | |
---|---|---|
committer | 2016-04-30 07:27:31 -0400 | |
commit | a1272742cfbdbfe999a701f804b58ceb4605713d (patch) | |
tree | 16d6013c8d99d9e4370d1672b4018f958081f416 /test/seccomp-su.exp | |
parent | Merge pull request #490 from reinerh/master (diff) | |
download | firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.tar.gz firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.tar.zst firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.zip |
added make test-filters
Diffstat (limited to 'test/seccomp-su.exp')
-rwxr-xr-x | test/seccomp-su.exp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/seccomp-su.exp b/test/seccomp-su.exp deleted file mode 100755 index dcae6f869..000000000 --- a/test/seccomp-su.exp +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --noprofile --seccomp\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 2 | ||
13 | |||
14 | send -- "sudo su -\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "effective uid is not 0" | ||
18 | } | ||
19 | |||
20 | send -- "sudo ls\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 2\n";exit} | ||
23 | "effective uid is not 0" | ||
24 | } | ||
25 | |||
26 | send -- "ping google.com\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 2\n";exit} | ||
29 | "Operation not permitted" | ||
30 | } | ||
31 | |||
32 | send -- "exit\r" | ||
33 | sleep 1 | ||
34 | puts "all done\n" | ||