aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-08-11 08:53:05 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-08-11 08:53:05 -0400
commita535609f5b6f4f6357219630f2da485d4aefb9d9 (patch)
treed4b1e9d2c6f6eb8799bd9346316b149646c512cc /test
parentxdg macro: silence resolve messages unless arg_debug (diff)
downloadfirejail-a535609f5b6f4f6357219630f2da485d4aefb9d9.tar.gz
firejail-a535609f5b6f4f6357219630f2da485d4aefb9d9.tar.zst
firejail-a535609f5b6f4f6357219630f2da485d4aefb9d9.zip
release 0.9.56~rc1 testing
Diffstat (limited to 'test')
-rwxr-xr-xtest/blacklist-link.exp82
-rwxr-xr-xtest/blacklist.exp75
-rw-r--r--test/blacklist1.profile1
-rw-r--r--test/blacklist2.profile1
-rw-r--r--test/blacklist3.profile1
5 files changed, 0 insertions, 160 deletions
diff --git a/test/blacklist-link.exp b/test/blacklist-link.exp
deleted file mode 100755
index 4252f875a..000000000
--- a/test/blacklist-link.exp
+++ /dev/null
@@ -1,82 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7# blacklist a directory symlink
8send -- "firejail --blacklist=auto2\r"
9expect {
10 timeout {puts "TESTING ERROR 1\n";exit}
11 "Child process initialized"
12}
13sleep 1
14
15send -- "ls auto2\r"
16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "cannot open directory"
19}
20send -- "exit\r"
21sleep 1
22
23# blacklist a directory symlink from a profile file
24send -- "firejail --profile=blacklist3.profile\r"
25expect {
26 timeout {puts "TESTING ERROR 3\n";exit}
27 "Child process initialized"
28}
29sleep 1
30
31send -- "ls auto2\r"
32expect {
33 timeout {puts "TESTING ERROR 4\n";exit}
34 "cannot open directory"
35}
36send -- "exit\r"
37sleep 1
38
39# do not blacklist /bin
40send -- "firejail --blacklist=auto3\r"
41expect {
42 timeout {puts "TESTING ERROR 5\n";exit}
43 "auto3 directory link was not blacklisted"
44}
45expect {
46 timeout {puts "TESTING ERROR 5.1\n";exit}
47 "Child process initialized"
48}
49sleep 1
50
51send -- "ls auto3; pwd\r"
52expect {
53 timeout {puts "TESTING ERROR 6\n";exit}
54 "cannot open directory" {puts "TESTING ERROR 6.1\n";exit}
55 "home"
56}
57send -- "exit\r"
58sleep 1
59
60# do not blacklist /usr/bin
61send -- "firejail --blacklist=auto3\r"
62expect {
63 timeout {puts "TESTING ERROR 7\n";exit}
64 "auto3 directory link was not blacklisted"
65}
66expect {
67 timeout {puts "TESTING ERROR 7.1\n";exit}
68 "Child process initialized"
69}
70sleep 1
71
72send -- "ls auto3; pwd\r"
73expect {
74 timeout {puts "TESTING ERROR 8\n";exit}
75 "cannot open directory" {puts "TESTING ERROR 9.1\n";exit}
76 "home"
77}
78send -- "exit\r"
79sleep 1
80
81
82puts "all done\n"
diff --git a/test/blacklist.exp b/test/blacklist.exp
deleted file mode 100755
index 9c3dddf1f..000000000
--- a/test/blacklist.exp
+++ /dev/null
@@ -1,75 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7# directory with ~
8send -- "firejail --blacklist=~/.config\r"
9expect {
10 timeout {puts "TESTING ERROR 1\n";exit}
11 "Child process initialized"
12}
13sleep 1
14
15send -- "ls -al ~/.config\r"
16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "cannot open directory"
19}
20
21send -- "exit\r"
22sleep 1
23
24# directory with ~ in profile file
25send -- "firejail --profile=blacklist1.profile\r"
26expect {
27 timeout {puts "TESTING ERROR 3\n";exit}
28 "Child process initialized"
29}
30sleep 1
31
32send -- "ls -al ~/.config\r"
33expect {
34 timeout {puts "TESTING ERROR 4\n";exit}
35 "cannot open directory"
36}
37
38send -- "exit\r"
39sleep 1
40
41
42# directory with space
43send -- "firejail \"--blacklist=dir with space\"\r"
44expect {
45 timeout {puts "TESTING ERROR 5\n";exit}
46 "Child process initialized"
47}
48sleep 1
49
50send -- "ls -al \"dir with space\"\r"
51expect {
52 timeout {puts "TESTING ERROR 6\n";exit}
53 "cannot open directory"
54}
55
56send -- "exit\r"
57sleep 1
58
59# directory with space in profile
60send -- "firejail --profile=blacklist2.profile\r"
61expect {
62 timeout {puts "TESTING ERROR 7\n";exit}
63 "Child process initialized"
64}
65sleep 1
66
67send -- "ls -al \"dir with space\"\r"
68expect {
69 timeout {puts "TESTING ERROR 8\n";exit}
70 "cannot open directory"
71}
72
73
74
75puts "\n"
diff --git a/test/blacklist1.profile b/test/blacklist1.profile
deleted file mode 100644
index f12facd05..000000000
--- a/test/blacklist1.profile
+++ /dev/null
@@ -1 +0,0 @@
1blacklist ~/.config
diff --git a/test/blacklist2.profile b/test/blacklist2.profile
deleted file mode 100644
index 4bb603db2..000000000
--- a/test/blacklist2.profile
+++ /dev/null
@@ -1 +0,0 @@
1blacklist dir with space
diff --git a/test/blacklist3.profile b/test/blacklist3.profile
deleted file mode 100644
index 08f754f3f..000000000
--- a/test/blacklist3.profile
+++ /dev/null
@@ -1 +0,0 @@
1blacklist auto2