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.exp50
1 files changed, 0 insertions, 50 deletions
diff --git a/test/root/seccomp-chown.exp b/test/root/seccomp-chown.exp
deleted file mode 100755
index e17bbc4bb..000000000
--- a/test/root/seccomp-chown.exp
+++ /dev/null
@@ -1,50 +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=chown,fchown,fchownat,lchown --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 -- "touch testfile; echo done\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "done"
23}
24after 100
25
26send -- "ls -l testfile; echo done\r"
27expect {
28 timeout {puts "TESTING ERROR 2\n";exit}
29 "testfile"
30}
31expect {
32 timeout {puts "TESTING ERROR 3\n";exit}
33 "done"
34}
35after 100
36
37send -- "chown netblue:netblue testfile; echo done\r"
38expect {
39 timeout {puts "TESTING ERROR 2\n";exit}
40 "Bad system call"
41}
42expect {
43 timeout {puts "TESTING ERROR 3\n";exit}
44 "done"
45}
46
47
48send -- "exit\r"
49after 100
50puts "\nall done\n"