aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/seccomp-chmod.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/seccomp-chmod.exp')
-rwxr-xr-xtest/root/seccomp-chmod.exp53
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14}
15sleep 2
16
17send -- "stty -echo\r"
18after 100
19send -- "cd ~; echo done\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "done"
23}
24
25send -- "touch testfile; echo done\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "done"
29}
30
31send -- "ls -l testfile; echo done\r"
32expect {
33 timeout {puts "TESTING ERROR 3\n";exit}
34 "testfile"
35}
36expect {
37 timeout {puts "TESTING ERROR 4\n";exit}
38 "done"
39}
40
41send -- "chmod +x testfile; echo done\r"
42expect {
43 timeout {puts "TESTING ERROR 5\n";exit}
44 "Bad system call"
45}
46expect {
47 timeout {puts "TESTING ERROR 6\n";exit}
48 "done"
49}
50
51send -- "exit\r"
52after 100
53puts "\nall done\n"