aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.10.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/1.10.exp')
-rwxr-xr-xtest/features/1.10.exp82
1 files changed, 0 insertions, 82 deletions
diff --git a/test/features/1.10.exp b/test/features/1.10.exp
deleted file mode 100755
index 6744ce826..000000000
--- a/test/features/1.10.exp
+++ /dev/null
@@ -1,82 +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# disable /selinux
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\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 -- "ls -l /selinux\r"
26expect {
27 timeout {puts "TESTING ERROR 1\n";exit}
28 "Permission denied" {puts "denied\n"}
29 "No such file or directory" {puts "no file\n"}
30}
31after 100
32send -- "exit\r"
33sleep 1
34
35
36#
37# O
38#
39if { $overlay == "overlay" } {
40 send -- "firejail --noprofile --overlay\r"
41 expect {
42 timeout {puts "TESTING ERROR 2\n";exit}
43 "overlay option is not available" {puts "grsecurity\n"; exit}
44 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
45 }
46 sleep 1
47
48 send -- "ls -l /selinux\r"
49 expect {
50 timeout {puts "TESTING ERROR 3\n";exit}
51 "Permission denied" {puts "denied\n"}
52 "No such file or directory" {puts "no file\n"}
53 }
54 after 100
55 send -- "exit\r"
56 sleep 1
57}
58
59#
60# C
61#
62if { $chroot == "chroot" } {
63 send -- "firejail --noprofile --chroot=/tmp/chroot\r"
64 expect {
65 timeout {puts "TESTING ERROR 4\n";exit}
66 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
67 }
68 sleep 1
69
70 send -- "ls -l /selinux\r"
71 expect {
72 timeout {puts "TESTING ERROR 5\n";exit}
73 "Permission denied" {puts "denied\n"}
74 "No such file or directory" {puts "no file\n"}
75 }
76 after 100
77 send -- "exit\r"
78 sleep 1
79}
80
81
82puts "\nall done\n"