diff options
-rwxr-xr-x | test/filters/noroot.exp | 1 | ||||
-rwxr-xr-x | test/filters/seccomp-su.exp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/filters/noroot.exp b/test/filters/noroot.exp index bbd2291c8..1e08cee12 100755 --- a/test/filters/noroot.exp +++ b/test/filters/noroot.exp | |||
@@ -49,6 +49,7 @@ expect { | |||
49 | timeout {puts "TESTING ERROR 8\n";exit} | 49 | timeout {puts "TESTING ERROR 8\n";exit} |
50 | "effective uid is not 0, is sudo installed setuid root?" { puts "OK\n";} | 50 | "effective uid is not 0, is sudo installed setuid root?" { puts "OK\n";} |
51 | "sudo must be owned by uid 0 and have the setuid bit set" { puts "OK\n";} | 51 | "sudo must be owned by uid 0 and have the setuid bit set" { puts "OK\n";} |
52 | "Bad system call" { puts "OK\n";} | ||
52 | } | 53 | } |
53 | send -- "cat /proc/self/uid_map | wc -l\r" | 54 | send -- "cat /proc/self/uid_map | wc -l\r" |
54 | expect { | 55 | expect { |
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 | |||
17 | send -- "sudo su -\r" | 17 | send -- "sudo su -\r" |
18 | expect { | 18 | expect { |
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 | ||
23 | send -- "sudo ls\r" | 24 | send -- "sudo ls\r" |
24 | expect { | 25 | expect { |
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 | ||
29 | send -- "ping google.com\r" | 31 | send -- "ping google.com\r" |