diff options
author | netblue30 <netblue30@yahoo.com> | 2015-11-22 13:37:36 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-11-22 13:37:36 -0500 |
commit | 0f1a12da2881727a2e1c214e0d48aa10b546f5fc (patch) | |
tree | 418bb92e04af2099f7164be370715ce16587d0da /test/features | |
parent | feature test (diff) | |
download | firejail-0f1a12da2881727a2e1c214e0d48aa10b546f5fc.tar.gz firejail-0f1a12da2881727a2e1c214e0d48aa10b546f5fc.tar.zst firejail-0f1a12da2881727a2e1c214e0d48aa10b546f5fc.zip |
disable firejail configuration by default
Diffstat (limited to 'test/features')
-rwxr-xr-x | test/features/1.1.exp | 4 | ||||
-rwxr-xr-x | test/features/1.5.exp | 4 | ||||
-rwxr-xr-x | test/features/1.6.exp | 4 | ||||
-rwxr-xr-x | test/features/1.7.exp | 4 | ||||
-rwxr-xr-x | test/features/1.8.exp | 38 | ||||
-rwxr-xr-x | test/features/test.sh | 10 |
6 files changed, 40 insertions, 24 deletions
diff --git a/test/features/1.1.exp b/test/features/1.1.exp index 41443a080..5ba123107 100755 --- a/test/features/1.1.exp +++ b/test/features/1.1.exp | |||
@@ -51,14 +51,14 @@ sleep 1 | |||
51 | # | 51 | # |
52 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 52 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 3\n";exit} | 54 | timeout {puts "TESTING ERROR 4\n";exit} |
55 | "Child process initialized" | 55 | "Child process initialized" |
56 | } | 56 | } |
57 | sleep 1 | 57 | sleep 1 |
58 | 58 | ||
59 | send -- "ls -l /boot | wc -l\r" | 59 | send -- "ls -l /boot | wc -l\r" |
60 | expect { | 60 | expect { |
61 | timeout {puts "TESTING ERROR 4\n";exit} | 61 | timeout {puts "TESTING ERROR 5\n";exit} |
62 | "1" | 62 | "1" |
63 | } | 63 | } |
64 | after 100 | 64 | after 100 |
diff --git a/test/features/1.5.exp b/test/features/1.5.exp index d722c5811..84c00937f 100755 --- a/test/features/1.5.exp +++ b/test/features/1.5.exp | |||
@@ -51,14 +51,14 @@ sleep 1 | |||
51 | # | 51 | # |
52 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 52 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 3\n";exit} | 54 | timeout {puts "TESTING ERROR 4\n";exit} |
55 | "Child process initialized" | 55 | "Child process initialized" |
56 | } | 56 | } |
57 | sleep 1 | 57 | sleep 1 |
58 | 58 | ||
59 | send -- "ps aux | wc -l \r" | 59 | send -- "ps aux | wc -l \r" |
60 | expect { | 60 | expect { |
61 | timeout {puts "TESTING ERROR 4\n";exit} | 61 | timeout {puts "TESTING ERROR 5\n";exit} |
62 | "5" | 62 | "5" |
63 | } | 63 | } |
64 | after 100 | 64 | after 100 |
diff --git a/test/features/1.6.exp b/test/features/1.6.exp index a9c8f2a19..0a4b788b8 100755 --- a/test/features/1.6.exp +++ b/test/features/1.6.exp | |||
@@ -51,14 +51,14 @@ sleep 1 | |||
51 | # | 51 | # |
52 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 52 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
53 | expect { | 53 | expect { |
54 | timeout {puts "TESTING ERROR 3\n";exit} | 54 | timeout {puts "TESTING ERROR 4\n";exit} |
55 | "Child process initialized" | 55 | "Child process initialized" |
56 | } | 56 | } |
57 | sleep 1 | 57 | sleep 1 |
58 | 58 | ||
59 | send -- "ls -l /var/log/syslog | wc -l\r" | 59 | send -- "ls -l /var/log/syslog | wc -l\r" |
60 | expect { | 60 | expect { |
61 | timeout {puts "TESTING ERROR 4\n";exit} | 61 | timeout {puts "TESTING ERROR 5\n";exit} |
62 | "0" | 62 | "0" |
63 | } | 63 | } |
64 | after 100 | 64 | after 100 |
diff --git a/test/features/1.7.exp b/test/features/1.7.exp index 0de3e224d..c95184fd1 100755 --- a/test/features/1.7.exp +++ b/test/features/1.7.exp | |||
@@ -53,14 +53,14 @@ sleep 1 | |||
53 | # | 53 | # |
54 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 54 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
55 | expect { | 55 | expect { |
56 | timeout {puts "TESTING ERROR 3\n";exit} | 56 | timeout {puts "TESTING ERROR 4\n";exit} |
57 | "Child process initialized" | 57 | "Child process initialized" |
58 | } | 58 | } |
59 | sleep 1 | 59 | sleep 1 |
60 | 60 | ||
61 | send -- "ls -l /var/tmp/somefile | wc -l\r" | 61 | send -- "ls -l /var/tmp/somefile | wc -l\r" |
62 | expect { | 62 | expect { |
63 | timeout {puts "TESTING ERROR 4\n";exit} | 63 | timeout {puts "TESTING ERROR 5\n";exit} |
64 | "0" | 64 | "0" |
65 | } | 65 | } |
66 | after 100 | 66 | after 100 |
diff --git a/test/features/1.8.exp b/test/features/1.8.exp index 514dd3b81..aefe9d8c5 100755 --- a/test/features/1.8.exp +++ b/test/features/1.8.exp | |||
@@ -10,7 +10,6 @@ match_max 100000 | |||
10 | # | 10 | # |
11 | # N | 11 | # N |
12 | # | 12 | # |
13 | send -- "touch /var/tmp/somefile\r" | ||
14 | sleep 1 | 13 | sleep 1 |
15 | send -- "firejail --noprofile\r" | 14 | send -- "firejail --noprofile\r" |
16 | expect { | 15 | expect { |
@@ -19,10 +18,16 @@ expect { | |||
19 | } | 18 | } |
20 | sleep 1 | 19 | sleep 1 |
21 | 20 | ||
22 | send -- "ls -l /var/tmp/somefile | wc -l\r" | 21 | send -- "ls /etc/firejail\r" |
23 | expect { | 22 | expect { |
24 | timeout {puts "TESTING ERROR 1\n";exit} | 23 | timeout {puts "TESTING ERROR 1\n";exit} |
25 | "0" | 24 | "Permission denied" |
25 | } | ||
26 | after 100 | ||
27 | send -- "ls ~/.config/firejail\r" | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
30 | "Permission denied" | ||
26 | } | 31 | } |
27 | after 100 | 32 | after 100 |
28 | send -- "exit\r" | 33 | send -- "exit\r" |
@@ -38,13 +43,19 @@ expect { | |||
38 | "Child process initialized" | 43 | "Child process initialized" |
39 | } | 44 | } |
40 | sleep 1 | 45 | sleep 1 |
41 | 46 | send -- "ls /etc/firejail\r" | |
42 | send -- "ls -l /var/tmp/somefile | wc -l\r" | ||
43 | expect { | 47 | expect { |
44 | timeout {puts "TESTING ERROR 3\n";exit} | 48 | timeout {puts "TESTING ERROR 3\n";exit} |
45 | "0" | 49 | "Permission denied" |
46 | } | 50 | } |
47 | after 100 | 51 | after 100 |
52 | send -- "ls ~/.config/firejail\r" | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
55 | "Permission denied" | ||
56 | } | ||
57 | after 100 | ||
58 | |||
48 | send -- "exit\r" | 59 | send -- "exit\r" |
49 | sleep 1 | 60 | sleep 1 |
50 | 61 | ||
@@ -53,15 +64,20 @@ sleep 1 | |||
53 | # | 64 | # |
54 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" | 65 | send -- "firejail --noprofile --chroot=/tmp/chroot\r" |
55 | expect { | 66 | expect { |
56 | timeout {puts "TESTING ERROR 3\n";exit} | 67 | timeout {puts "TESTING ERROR 4\n";exit} |
57 | "Child process initialized" | 68 | "Child process initialized" |
58 | } | 69 | } |
59 | sleep 1 | 70 | sleep 1 |
60 | 71 | send -- "ls /etc/firejail\r" | |
61 | send -- "ls -l /var/tmp/somefile | wc -l\r" | ||
62 | expect { | 72 | expect { |
63 | timeout {puts "TESTING ERROR 4\n";exit} | 73 | timeout {puts "TESTING ERROR 5\n";exit} |
64 | "0" | 74 | "Permission denied" |
75 | } | ||
76 | after 100 | ||
77 | send -- "ls ~/.config/firejail\r" | ||
78 | expect { | ||
79 | timeout {puts "TESTING ERROR 5.1\n";exit} | ||
80 | "Permission denied" | ||
65 | } | 81 | } |
66 | after 100 | 82 | after 100 |
67 | send -- "exit\r" | 83 | send -- "exit\r" |
diff --git a/test/features/test.sh b/test/features/test.sh index b4ef6503a..1fb7557c8 100755 --- a/test/features/test.sh +++ b/test/features/test.sh | |||
@@ -4,13 +4,13 @@ | |||
4 | # Feature testing | 4 | # Feature testing |
5 | # | 5 | # |
6 | 6 | ||
7 | echo "TESTING: 1.1. new /boot" | 7 | echo "TESTING: 1.1 new /boot" |
8 | ./1.1.exp | 8 | ./1.1.exp |
9 | 9 | ||
10 | echo "TESTING: 1.2. new /proc" | 10 | echo "TESTING: 1.2 new /proc" |
11 | ./1.2.exp | 11 | ./1.2.exp |
12 | 12 | ||
13 | echo "TESTING: 1.5. PID namespace" | 13 | echo "TESTING: 1.5 PID namespace" |
14 | ./1.5.exp | 14 | ./1.5.exp |
15 | 15 | ||
16 | echo "TESTING: 1.6 new /var/log" | 16 | echo "TESTING: 1.6 new /var/log" |
@@ -19,6 +19,6 @@ echo "TESTING: 1.6 new /var/log" | |||
19 | echo "TESTING: 1.7 new /var/tmp" | 19 | echo "TESTING: 1.7 new /var/tmp" |
20 | ./1.7.exp | 20 | ./1.7.exp |
21 | 21 | ||
22 | #echo "TESTING: " | 22 | echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" |
23 | #./1..exp | 23 | ./1.8.exp |
24 | 24 | ||