shell none set as default (6)

This commit is contained in:
netblue30 2022-06-19 20:03:14 -04:00
parent da268cf5be
commit bb14c205b5
5 changed files with 0 additions and 147 deletions

View file

@ -1,34 +0,0 @@
#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2022 Firejail Authors
# License GPL v2
set timeout 10
cd /home
spawn $env(SHELL)
match_max 100000
send -- "firejail --private --shell=/bin/csh\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}
sleep 1
send -- "env | grep SHELL;pwd\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"SHELL"
}
expect {
timeout {puts "TESTING ERROR 2\n";exit}
"/bin/csh"
}
expect {
timeout {puts "TESTING ERROR 3\n";exit}
"home"
}
send -- "exit\r"
after 100
puts "\nall done\n"

View file

@ -1,44 +0,0 @@
#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2022 Firejail Authors
# License GPL v2
set timeout 10
cd /home
spawn $env(SHELL)
match_max 100000
send -- "firejail --private --tracelog --shell=/bin/dash\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}
sleep 1
#send -- "ls -al;pwd\r"
#expect {
# timeout {puts "TESTING ERROR 1\n";exit}
# ".zshrc"
#}
#expect {
# timeout {puts "TESTING ERROR 1.1\n";exit}
# "home"
#}
send -- "env | grep SHELL;pwd\r"
expect {
timeout {puts "TESTING ERROR 2\n";exit}
"SHELL"
}
expect {
timeout {puts "TESTING ERROR 2.1\n";exit}
"/bin/dash"
}
expect {
timeout {puts "TESTING ERROR 2.2\n";exit}
"home"
}
send -- "exit\r"
after 100
puts "\n"

View file

@ -36,33 +36,6 @@ echo "TESTING: extract command (extract_command.exp)"
echo "TESTING: environment variables (test/environment/env.exp)"
./env.exp
which dash 2>/dev/null
if [ "$?" -eq 0 ];
then
echo "TESTING: dash (test/environment/dash.exp)"
./dash.exp
else
echo "TESTING SKIP: dash not found"
fi
which csh 2>/dev/null
if [ "$?" -eq 0 ];
then
echo "TESTING: csh (test/environment/csh.exp)"
./csh.exp
else
echo "TESTING SKIP: csh not found"
fi
which zsh 2>/dev/null
if [ "$?" -eq 0 ];
then
echo "TESTING: zsh (test/environment/zsh.exp)"
./zsh.exp
else
echo "TESTING SKIP: zsh not found"
fi
echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)"
./firejail-in-firejail.exp

View file

@ -1,34 +0,0 @@
#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2022 Firejail Authors
# License GPL v2
set timeout 10
cd /home
spawn $env(SHELL)
match_max 100000
send -- "firejail --private --shell=/bin/zsh\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
-re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
}
sleep 1
send -- "env | grep SHELL;pwd\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"SHELL"
}
expect {
timeout {puts "TESTING ERROR 2\n";exit}
"/bin/zsh"
}
expect {
timeout {puts "TESTING ERROR 3\n";exit}
"home"
}
send -- "exit\r"
after 100
puts "\nall done\n"

View file

@ -16,14 +16,6 @@ expect {
sleep 2
spawn $env(SHELL)
send -- "firejail --shell=none --join=jointesting\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"shell=none set, but no command specified"
}
after 100
send -- "firejail --join=jointesting\r"
expect {
timeout {puts "TESTING ERROR 2\n";exit}