diff options
Diffstat (limited to 'test/root/seccomp-chmod.exp')
-rwxr-xr-x | test/root/seccomp-chmod.exp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/test/root/seccomp-chmod.exp b/test/root/seccomp-chmod.exp deleted file mode 100755 index d26098524..000000000 --- a/test/root/seccomp-chmod.exp +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
14 | } | ||
15 | sleep 2 | ||
16 | |||
17 | send -- "stty -echo\r" | ||
18 | after 100 | ||
19 | send -- "cd ~; echo done\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 1\n";exit} | ||
22 | "done" | ||
23 | } | ||
24 | |||
25 | send -- "touch testfile; echo done\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 2\n";exit} | ||
28 | "done" | ||
29 | } | ||
30 | |||
31 | send -- "ls -l testfile; echo done\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 3\n";exit} | ||
34 | "testfile" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 4\n";exit} | ||
38 | "done" | ||
39 | } | ||
40 | |||
41 | send -- "chmod +x testfile; echo done\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 5\n";exit} | ||
44 | "Bad system call" | ||
45 | } | ||
46 | expect { | ||
47 | timeout {puts "TESTING ERROR 6\n";exit} | ||
48 | "done" | ||
49 | } | ||
50 | |||
51 | send -- "exit\r" | ||
52 | after 100 | ||
53 | puts "\nall done\n" | ||