aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-05 09:48:36 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-05 09:48:36 -0400
commit135338ba895d5feb444e3e4d6548e3474f262637 (patch)
tree9370a54dc7b05dd6381c8b517618cfc30445addb /test
parentOpera profile patch (diff)
downloadfirejail-135338ba895d5feb444e3e4d6548e3474f262637.tar.gz
firejail-135338ba895d5feb444e3e4d6548e3474f262637.tar.zst
firejail-135338ba895d5feb444e3e4d6548e3474f262637.zip
grsecurity: --chroot
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs_chroot.exp3
-rwxr-xr-xtest/invalid_filename.exp3
-rwxr-xr-xtest/option_chroot_overlay.exp3
3 files changed, 6 insertions, 3 deletions
diff --git a/test/fs_chroot.exp b/test/fs_chroot.exp
index cc0d82179..cced5a0f0 100755
--- a/test/fs_chroot.exp
+++ b/test/fs_chroot.exp
@@ -7,7 +7,8 @@ match_max 100000
7send -- "firejail --chroot=/tmp/chroot\r" 7send -- "firejail --chroot=/tmp/chroot\r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized" 10 "Error: --chroot option is not available on GRSecurity systems" {puts "\nall done\n"; exit}
11 "Child process initialized" {puts "chroot available\n"};
11} 12}
12sleep 1 13sleep 1
13 14
diff --git a/test/invalid_filename.exp b/test/invalid_filename.exp
index dd1fa4634..8b8087e9b 100755
--- a/test/invalid_filename.exp
+++ b/test/invalid_filename.exp
@@ -56,7 +56,8 @@ after 100
56send -- "firejail --debug-check-filename --noprofile --chroot=\"bla&&bla\"\r" 56send -- "firejail --debug-check-filename --noprofile --chroot=\"bla&&bla\"\r"
57expect { 57expect {
58 timeout {puts "TESTING ERROR 3.1\n";exit} 58 timeout {puts "TESTING ERROR 3.1\n";exit}
59 "Checking filename bla&&bla" 59 "Checking filename bla&&bla" {puts "normal system\n"}
60 "Error: --chroot option is not available on GRSecurity systems" { puts "\nall done\n"; exit}
60} 61}
61expect { 62expect {
62 timeout {puts "TESTING ERROR 3.2\n";exit} 63 timeout {puts "TESTING ERROR 3.2\n";exit}
diff --git a/test/option_chroot_overlay.exp b/test/option_chroot_overlay.exp
index b39bc0c8e..dd1b8eb28 100755
--- a/test/option_chroot_overlay.exp
+++ b/test/option_chroot_overlay.exp
@@ -7,7 +7,8 @@ match_max 100000
7send -- "firejail --chroot=/tmp/chroot --overlay\r" 7send -- "firejail --chroot=/tmp/chroot --overlay\r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
10 "mutually exclusive" 10 "mutually exclusive" {puts "normal system\n"}
11 "Error: --chroot option is not available on GRSecurity systems" { puts "\nall done\n"; exit}
11} 12}
12sleep 1 13sleep 1
13 14