mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
Merge pull request #4918 from smitsohu/tests2
testing: fix expect matching of numbers
This commit is contained in:
commit
03395e10bf
244 changed files with 559 additions and 523 deletions
|
|
@ -23,7 +23,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 7\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ set appimage_id $spawn_id
|
|||
send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.17-x86_64.AppImage\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
|
|
@ -38,7 +38,7 @@ sleep 1
|
|||
send -- "firejail --trace --timeout=00:00:05 --appimage Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 11\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 12\n";exit}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ set appimage_id $spawn_id
|
|||
send -- "firejail --name=appimage-test --debug --appimage Leafpad-0.8.17-x86_64.AppImage\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ set appimage_id $spawn_id
|
|||
send -- "firejail --name=appimage-test --appimage Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ sleep 1
|
|||
send -- "firejail --name=test --net=none --x11=none\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --name=test --x11=xephyr xterm\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
|
||||
exit
|
||||
|
|
@ -28,7 +28,7 @@ sleep 1
|
|||
send -- "firejail --name=test --net=none --x11=none\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 10
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 10
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 10
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 5
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 5
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 10
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 5
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ expect {
|
|||
send -- "firejail --name=blablabla\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ send -- "firejail --chroot=/tmp/chroot\r"
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Error: --chroot option is not available on Grsecurity systems" {puts "\nall done\n"; exit}
|
||||
"Child process initialized" {puts "chroot available\n"};
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "chroot available\n"};
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ send -- "firejail --chroot=/tmp/chroot\r"
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Error: --chroot option is not available on Grsecurity systems" {puts "\nall done\n"; exit}
|
||||
"Child process initialized" {puts "chroot available\n"};
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "chroot available\n"};
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --allow-debuggers\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized" { puts "\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" { puts "\n"}
|
||||
"is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel too old\n"; exit }
|
||||
}
|
||||
after 100
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --private --shell=/bin/csh\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --private --tracelog --shell=/bin/dash\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ after 100
|
|||
send -- "firejail --deterministic-exit-code\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1.5\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1.6\n";exit}
|
||||
|
|
@ -47,7 +47,7 @@ expect {
|
|||
"DNS server 8.8.8.8" {puts "TESTING ERROR 2.3\n";exit}
|
||||
"DNS server 4.2.2.1" {puts "TESTING ERROR 2.4\n";exit}
|
||||
"DNS server ::2" {puts "TESTING ERROR 2.5\n";exit}
|
||||
"Child process initialized" {puts "TESTING ERROR 2.6\n";exit}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "TESTING ERROR 2.6\n";exit}
|
||||
"Parent is shutting down, bye..." {puts "TESTING ERROR 2.7\n";exit}
|
||||
"root"
|
||||
}
|
||||
|
|
@ -56,7 +56,7 @@ after 100
|
|||
send -- "firejail --dns=8.8.4.4 --dns=8.8.8.8 --dns=4.2.2.1 --dns=::2\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -85,7 +85,7 @@ sleep 1
|
|||
send -- "firejail --profile=dns.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 5.1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail -- ls -- -testdir\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
|
|
@ -26,7 +26,7 @@ sleep 1
|
|||
send -- "firejail --name=testing -- -testdir/bash\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 3
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --env=ENV1=env1 --env=ENV2=env2 --env=ENV3=env3\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ after 100
|
|||
send -- "firejail --profile=env.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
send -- "env | grep LD_LIBRARY_PATH\r"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ after 100
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"Child process initialized"
|
||||
-re {Child process initialized in [0-9]+.[0-9]+ ms}
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ after 500
|
|||
send -- "firejail --noprofile --keep-fd=\$READ_FD\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 6\n";exit}
|
||||
"Child process initialized"
|
||||
-re {Child process initialized in [0-9]+.[0-9]+ ms}
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ after 500
|
|||
send -- "firejail --noprofile --keep-fd=\$WRITE_FD\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Child process initialized"
|
||||
-re {Child process initialized in [0-9]+.[0-9]+ ms}
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ after 500
|
|||
send -- "firejail --noprofile --keep-fd=\$READ_FD,\$WRITE_FD\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 14\n";exit}
|
||||
"Child process initialized"
|
||||
-re {Child process initialized in [0-9]+.[0-9]+ ms}
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -191,7 +191,7 @@ after 500
|
|||
send -- "firejail --noprofile --keep-fd=all\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 18\n";exit}
|
||||
"Child process initialized"
|
||||
-re {Child process initialized in [0-9]+.[0-9]+ ms}
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
send -- "exit\r"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --nice=15\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ after 100
|
|||
send -- "firejail --profile=nice.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ after 100
|
|||
send -- "firejail --nice=-5\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 17\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --noprofile --name=\"rlimit testing\"\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -21,11 +21,15 @@ expect {
|
|||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Switching to pid"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
send -- "cat /proc/self/limits\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Max open files 1234 1234"
|
||||
}
|
||||
after 100
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --profile=rlimit.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=1234567890\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ after 100
|
|||
send -- "firejail --shell=none ls\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
|
|
@ -35,7 +35,7 @@ after 100
|
|||
send -- "firejail --profile=shell-none.profile ls\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 5\n";exit}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --nosound speaker-test\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
|
|
@ -22,7 +22,7 @@ sleep 2
|
|||
send -- "firejail --nosound aplay -l\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
|
|
@ -39,7 +39,7 @@ sleep 2
|
|||
send -- "firejail --profile=sound.profile speaker-test\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 11\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 12\n";exit}
|
||||
|
|
@ -50,7 +50,7 @@ sleep 2
|
|||
send -- "firejail --profile=sound.profile aplay -l\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 13\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 14\n";exit}
|
||||
|
|
@ -67,7 +67,7 @@ sleep 2
|
|||
send -- "firejail aplay -l\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 23\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 24\n";exit}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "time firejail --timeout=00:00:05\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ match_max 100000
|
|||
send -- "firejail --private --shell=/bin/zsh\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ sleep 1
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ sleep 1
|
|||
send -- "firejail --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
send -- "ls ~/.config/firejail\r"
|
||||
|
|
@ -122,7 +122,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
send -- "ls ~/.config/firejail\r"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --hostname=bingo\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --hostname=bingo --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --dns=4.2.2.1\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --dns=4.2.2.1 --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --net=eth0 --dns=8.8.8.8 --dns=8.8.4.4\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ sleep 3
|
|||
send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --dns=8.8.8.8 --dns=8.8.4.4\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ if { $overlay == "overlay" } {
|
|||
send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --overlay --dns=8.8.8.8 --dns=8.8.4.4\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -205,7 +205,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --net=eth0 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -249,7 +249,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --net=br0\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ sleep 1
|
|||
send -- "firejail --noprofile --net=br0 --ip=10.10.20.4\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ if { $overlay == "overlay" } {
|
|||
send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --overlay\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -179,7 +179,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --net=br0 --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -208,7 +208,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --net=br0 --ip=10.10.20.4 --chroot=/tmp/chroot\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --interface=eth0.5\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --interface=eth0.7\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --net=eth0 --defaultgw=192.168.1.10 --protocol=unix,inet,netlink\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --net=eth0 --defaultgw=192.168.1.10 --protocol=unix,inet,netlink\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --private\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --private\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ sleep 1
|
|||
send -- "firejail --noprofile --whitelist=/tmp/test1dir\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/tmp/test1dir\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ sleep 1
|
|||
send -- "firejail --profile=3.11.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --profile=3.11.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 20\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ sleep 1
|
|||
send -- "firejail --noprofile --read-only=/home/netblue/.config\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --read-only=/home/netblue/.config\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --blacklist=/home/netblue/.config\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --blacklist=/home/netblue/.config\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --whitelist=/home/netblue/.config\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -147,7 +147,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/home/netblue/.config\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --private-dev\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --private-dev\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --private-etc=group,hostname,hosts,nsswitch.conf,passwd,resolv.conf,skel\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ if { $chroot == "chroot" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 5\n";exit}
|
||||
"chroot option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ sleep 1
|
|||
send -- "firejail --noprofile --private-tmp\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --private-tmp\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --private-bin=bash,cat,cp,ls,wc\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ if { $chroot == "chroot" } {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 5\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ set chroot [lindex $argv 1]
|
|||
send -- "firejail --noprofile --whitelist=/dev/tty --whitelist=/dev/null\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ if { $overlay == "overlay" } {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 2\n";exit}
|
||||
"overlay option is not available" {puts "grsecurity\n"; exit}
|
||||
"Child process initialized" {puts "normal system\n"}
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "normal system\n"}
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ if { $chroot == "chroot" } {
|
|||
send -- "firejail --noprofile --chroot=/tmp/chroot --whitelist=/dev/tty --whitelist=/dev/null\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --name=test1 --apparmor\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ spawn $env(SHELL)
|
|||
send -- "firejail --name=test2 --apparmor\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ set spawn_id $id1
|
|||
send -- "firejail --name=jointesting\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ set spawn_id $id1
|
|||
send -- "firejail --name=jointesting --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ set spawn_id $id1
|
|||
send -- "firejail --name=jointesting --noprofile --caps.keep=chown,fowner\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR20\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 8\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --caps.keep=chown,fowner --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ sleep 1
|
|||
send -- "firejail --caps.drop=all --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ sleep 1
|
|||
send -- "firejail --caps.drop=chown,dac_override,dac_read_search,fowner --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 7\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ expect {
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 13\n";exit}
|
||||
"Drop CAP_" {puts "TESTING ERROR 14\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
send -- "exit\r"
|
||||
|
|
@ -93,7 +93,7 @@ sleep 1
|
|||
#send -- "firejail --profile=caps2.profile\r"
|
||||
#expect {
|
||||
# timeout {puts "TESTING ERROR 15\n";exit}
|
||||
# "Child process initialized"
|
||||
# -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
#}
|
||||
#after 100
|
||||
#
|
||||
|
|
@ -113,7 +113,7 @@ sleep 1
|
|||
send -- "firejail --profile=caps3.profile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 18\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
after 100
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --memory-deny-write-execute ./memwrexe-32 mmap\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
|
|
@ -22,7 +22,7 @@ after 100
|
|||
send -- "firejail --memory-deny-write-execute ./memwrexe-32 mprotect\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 11\n";exit}
|
||||
|
|
@ -34,7 +34,7 @@ after 100
|
|||
send -- "firejail --memory-deny-write-execute ./memwrexe-32 memfd_create\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 20\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 21\n";exit}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --memory-deny-write-execute ./memwrexe mmap\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
|
|
@ -22,7 +22,7 @@ after 100
|
|||
send -- "firejail --memory-deny-write-execute ./memwrexe mprotect\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 11\n";exit}
|
||||
|
|
@ -34,7 +34,7 @@ after 100
|
|||
send -- "firejail --memory-deny-write-execute ./memwrexe memfd_create\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 20\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 21\n";exit}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --name=test --noroot --noprofile\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --profile=seccomp.profile --private\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --seccomp=chown,fchown,fchownat,lchown --private\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
|
|
@ -36,7 +36,7 @@ expect {
|
|||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp seccomp filter" {puts "TESTING ERROR 11\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 12\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 16\n";exit}
|
||||
|
|
@ -48,7 +48,7 @@ after 100
|
|||
send -- "firejail --debug --ignore=protocol sleep 1; echo done\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 17\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 19\n";exit}
|
||||
|
|
@ -65,7 +65,7 @@ after 100
|
|||
send -- "firejail --debug --memory-deny-write-execute sleep 1; echo done\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 24\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 25\n";exit}
|
||||
|
|
@ -82,7 +82,7 @@ send -- "firejail --debug --seccomp.block-secondary sleep 1; echo done\r"
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 27\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 28\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 29\n";exit}
|
||||
|
|
@ -105,7 +105,7 @@ send -- "firejail --debug --profile=block-secondary.profile sleep 1; echo done\
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 33\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 34\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 35\n";exit}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 4\n";exit}
|
||||
|
|
@ -34,7 +34,7 @@ after 100
|
|||
send -- "firejail --debug sleep 1; echo done\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 5\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 6\n";exit}
|
||||
|
|
@ -60,7 +60,7 @@ expect {
|
|||
timeout {puts "TESTING ERROR 10\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp seccomp filter" {puts "TESTING ERROR 11\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 12\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 13\n";exit}
|
||||
|
|
@ -79,7 +79,7 @@ send -- "firejail --debug --ignore=protocol sleep 1; echo done\r"
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 17\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.protocol seccomp filter" {puts "TESTING ERROR 18\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 19\n";exit}
|
||||
|
|
@ -101,7 +101,7 @@ after 100
|
|||
send -- "firejail --debug --memory-deny-write-execute sleep 1; echo done\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 24\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 25\n";exit}
|
||||
|
|
@ -118,7 +118,7 @@ send -- "firejail --debug --seccomp.block-secondary sleep 1; echo done\r"
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 27\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 28\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 29\n";exit}
|
||||
|
|
@ -141,7 +141,7 @@ send -- "firejail --debug --profile=block-secondary.profile sleep 1; echo done\
|
|||
expect {
|
||||
timeout {puts "TESTING ERROR 33\n";exit}
|
||||
"Installing /run/firejail/mnt/seccomp/seccomp.32 seccomp filter" {puts "TESTING ERROR 34\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 35\n";exit}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0.7\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
send -- "exit\r"
|
||||
|
|
@ -78,7 +78,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 1.7\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
send -- "exit\r"
|
||||
|
|
@ -120,7 +120,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 2.7\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
send -- "exit\r"
|
||||
|
|
@ -156,7 +156,7 @@ expect {
|
|||
}
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3.7\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
send -- "exit\r"
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ sleep 1
|
|||
send -- "firejail --seccomp=unlinkat:ENOENT,mkdir:ENOENT\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 3\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 1
|
||||
send -- "rm seccomp-test-file\r"
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ match_max 100000
|
|||
send -- "firejail --noprofile --seccomp\r"
|
||||
expect {
|
||||
timeout {puts "TESTING ERROR 0\n";exit}
|
||||
"Child process initialized"
|
||||
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
|
||||
}
|
||||
sleep 2
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue