aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/3.3.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/3.3.exp')
-rwxr-xr-xtest/features/3.3.exp78
1 files changed, 0 insertions, 78 deletions
diff --git a/test/features/3.3.exp b/test/features/3.3.exp
deleted file mode 100755
index 8c931dcf1..000000000
--- a/test/features/3.3.exp
+++ /dev/null
@@ -1,78 +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# blacklist
7#
8
9set timeout 10
10spawn $env(SHELL)
11match_max 100000
12set overlay [lindex $argv 0]
13set chroot [lindex $argv 1]
14
15#
16# N
17#
18send -- "firejail --noprofile --blacklist=/home/netblue/.config\r"
19expect {
20 timeout {puts "TESTING ERROR 0\n";exit}
21 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
22}
23sleep 1
24
25send -- "cd ~/.config\r"
26expect {
27 timeout {puts "TESTING ERROR 1\n";exit}
28 "Permission denied"
29}
30after 100
31send -- "exit\r"
32sleep 1
33
34
35#
36# O
37#
38if { $overlay == "overlay" } {
39 send -- "firejail --noprofile --overlay --blacklist=/home/netblue/.config\r"
40 expect {
41 timeout {puts "TESTING ERROR 2\n";exit}
42 "overlay option is not available" {puts "grsecurity\n"; exit}
43 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
44 }
45 sleep 1
46
47 send -- "cd ~/.config\r"
48 expect {
49 timeout {puts "TESTING ERROR 3\n";exit}
50 "Permission denied"
51 }
52 after 100
53 send -- "exit\r"
54 sleep 1
55}
56
57#
58# C
59#
60if { $chroot == "chroot" } {
61 send -- "firejail --noprofile --chroot=/tmp/chroot --blacklist=/home/netblue/.config\r"
62 expect {
63 timeout {puts "TESTING ERROR 4\n";exit}
64 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
65 }
66 sleep 1
67
68 send -- "cd ~/.config\r"
69 expect {
70 timeout {puts "TESTING ERROR 5\n";exit}
71 "Permission denied"
72 }
73 after 100
74 send -- "exit\r"
75 sleep 1
76}
77
78puts "\nall done\n"