diff options
author | netblue30 <netblue30@yahoo.com> | 2017-09-05 19:15:39 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-09-05 19:15:39 -0400 |
commit | 912ec614b6c059c9cbc1028ddd56b13beb7ad393 (patch) | |
tree | e02c1e30eb17602f19d7adb451415f4ead14ebf3 /test/root/seccomp-chown.exp | |
parent | testing (diff) | |
download | firejail-912ec614b6c059c9cbc1028ddd56b13beb7ad393.tar.gz firejail-912ec614b6c059c9cbc1028ddd56b13beb7ad393.tar.zst firejail-912ec614b6c059c9cbc1028ddd56b13beb7ad393.zip |
testing
Diffstat (limited to 'test/root/seccomp-chown.exp')
-rwxr-xr-x | test/root/seccomp-chown.exp | 17 |
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 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
17 | send -- "touch testfile;pwd\r" | 17 | send -- "touch testfile; echo done\r" |
18 | expect { | 18 | expect { |
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 | } |
22 | after 100 | ||
23 | 23 | ||
24 | send -- "ls -l testfile;pwd\r" | 24 | send -- "ls -l testfile; echo done\r" |
25 | expect { | 25 | expect { |
26 | timeout {puts "TESTING ERROR 2\n";exit} | 26 | timeout {puts "TESTING ERROR 2\n";exit} |
27 | "testfile" | 27 | "testfile" |
28 | } | 28 | } |
29 | expect { | 29 | expect { |
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 | } |
33 | after 100 | ||
34 | 34 | ||
35 | send -- "chown netblue:netblue testfile;pwd\r" | 35 | send -- "chown netblue:netblue testfile; echo done\r" |
36 | expect { | 36 | expect { |
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 | } |
40 | expect { | 40 | expect { |
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 | ||