aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-su.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-24 11:12:03 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-24 11:12:03 -0400
commit0bc571120af013407e448d9935e8be5189bc2765 (patch)
treee225c168606306b275d851dc90e6e1515300524f /test/filters/seccomp-su.exp
parent0.9.40 testing (diff)
downloadfirejail-0bc571120af013407e448d9935e8be5189bc2765.tar.gz
firejail-0bc571120af013407e448d9935e8be5189bc2765.tar.zst
firejail-0bc571120af013407e448d9935e8be5189bc2765.zip
0.9.40 testing
Diffstat (limited to 'test/filters/seccomp-su.exp')
-rwxr-xr-xtest/filters/seccomp-su.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/filters/seccomp-su.exp b/test/filters/seccomp-su.exp
index 003f3df99..e2ab050bf 100755
--- a/test/filters/seccomp-su.exp
+++ b/test/filters/seccomp-su.exp
@@ -17,13 +17,15 @@ sleep 2
17send -- "sudo su -\r" 17send -- "sudo su -\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 "effective uid is not 0" 20 "effective uid is not 0" {puts "OK\n"}
21 "Bad system call" {puts "OK\n"}
21} 22}
22 23
23send -- "sudo ls\r" 24send -- "sudo ls\r"
24expect { 25expect {
25 timeout {puts "TESTING ERROR 2\n";exit} 26 timeout {puts "TESTING ERROR 2\n";exit}
26 "effective uid is not 0" 27 "effective uid is not 0" {puts "OK\n"}
28 "Bad system call" {puts "OK\n"}
27} 29}
28 30
29send -- "ping google.com\r" 31send -- "ping google.com\r"