firejail/test/root/option_bind_directory.exp
2017-05-24 14:38:01 -05:00

21 lines
319 B
Text
Executable file

#!/usr/bin/expect -f
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "firejail --bind=/tmp/chroot,mntpoint\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
send -- "ls mntpoint;pwd\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"root"
}
sleep 1
puts "\n"