aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/seccomp-chown.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/seccomp-chown.exp')
-rwxr-xr-xtest/root/seccomp-chown.exp17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/root/seccomp-chown.exp b/test/root/seccomp-chown.exp
index 7d9da5e5a..174a35ffe 100755
--- a/test/root/seccomp-chown.exp
+++ b/test/root/seccomp-chown.exp
@@ -14,33 +14,32 @@ expect {
14} 14}
15sleep 2 15sleep 2
16 16
17send -- "touch testfile;pwd\r" 17send -- "touch testfile; echo done\r"
18expect { 18expect {
19 timeout {puts "TESTING ERROR 1\n";exit} 19 timeout {puts "TESTING ERROR 1\n";exit}
20 "/root" {puts "running as root"} 20 "done"
21 "/home"
22} 21}
22after 100
23 23
24send -- "ls -l testfile;pwd\r" 24send -- "ls -l testfile; echo done\r"
25expect { 25expect {
26 timeout {puts "TESTING ERROR 2\n";exit} 26 timeout {puts "TESTING ERROR 2\n";exit}
27 "testfile" 27 "testfile"
28} 28}
29expect { 29expect {
30 timeout {puts "TESTING ERROR 3\n";exit} 30 timeout {puts "TESTING ERROR 3\n";exit}
31 "/root" {puts "running as root"} 31 "done"
32 "/home"
33} 32}
33after 100
34 34
35send -- "chown netblue:netblue testfile;pwd\r" 35send -- "chown netblue:netblue testfile; echo done\r"
36expect { 36expect {
37 timeout {puts "TESTING ERROR 2\n";exit} 37 timeout {puts "TESTING ERROR 2\n";exit}
38 "Bad system call" 38 "Bad system call"
39} 39}
40expect { 40expect {
41 timeout {puts "TESTING ERROR 3\n";exit} 41 timeout {puts "TESTING ERROR 3\n";exit}
42 "/root" {puts "running as root"} 42 "done"
43 "/home"
44} 43}
45 44
46 45