fix whitelist/allow in make test-utils

This commit is contained in:
startx2017 2021-07-29 08:07:28 -04:00
parent 0043826934
commit e4307b409b
2 changed files with 7 additions and 6 deletions

View file

@ -7,13 +7,13 @@ set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "echo testing > ~/firejail-test-file-7699\r"
send -- "echo testing > ~/_firejail-test-file\r"
after 100
send -- "firejail --build cat ~/firejail-test-file-7699\r"
send -- "firejail --build cat ~/_firejail-test-file\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"whitelist $\{HOME\}/firejail-test-file-7699"
"allow $\{HOME\}/_firejail-test-file"
}
expect {
timeout {puts "TESTING ERROR 1\n";exit}
@ -77,7 +77,8 @@ expect {
}
after 100
send -- "rm -f ~/_firejail-test-file\r"
after 100
send -- "firejail --build cat /etc/passwd\r"
expect {

View file

@ -15,8 +15,8 @@ export PATH="$PATH:/usr/lib/firejail:/usr/lib64/firejail"
echo "TESTING: build (test/utils/build.exp)"
./build.exp
rm -f ~/firejail-test-file-7699
rm -f firejail-test-file-4388
rm -f ~/_firejail-test-file
rm -f _firejail-test-file
echo "TESTING: name (test/utils/name.exp)"
./name.exp