hidepid part 5

This commit is contained in:
netblue30 2016-11-11 12:52:05 -05:00
parent cffa48d80c
commit bb5b4077e6
33 changed files with 38 additions and 6 deletions

View file

@ -251,3 +251,4 @@ test-root:
test-overlay:
cd test/overlay; ./overlay.sh | grep TESTING
# mount -o remount,rw,hidepid=2 /proc

View file

@ -44,6 +44,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
" firefox" {puts "firefox detected\n";}
" iceweasel" {puts "iceweasel detected\n";}
}

View file

@ -41,6 +41,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail"
}
expect {

View file

@ -41,6 +41,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail"
}
expect {

View file

@ -40,6 +40,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail"
}
expect {

View file

@ -44,6 +44,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
" firefox" {puts "firefox detected\n";}
" iceweasel" {puts "iceweasel detected\n";}
}

View file

@ -41,6 +41,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail"
}
expect {

View file

@ -41,6 +41,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail"
}
expect {

View file

@ -41,6 +41,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail chromium"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail deluge"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail evince"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail fbreader"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail filezilla"
}
expect {

View file

@ -55,6 +55,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
" firefox" {puts "firefox detected\n";}
" iceweasel" {puts "iceweasel detected\n";}
}

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail gnome-mplayer"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail gthumb"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
"hexchat"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail icedove"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail midori"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail opera"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail qbittorrent"
}
expect {

View file

@ -44,6 +44,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail transmission-gtk"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail transmission-qt"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail uget-gtk"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
":firejail vlc"
}
expect {

View file

@ -49,6 +49,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"need to be root" {puts "/proc mounted as hidepid, exiting...\n"; exit}
" xchat"
}
expect {

View file

@ -66,6 +66,7 @@ spawn $env(SHELL)
send -- "firemon --caps\r"
expect {
timeout {puts "TESTING ERROR 8.1\n";exit}
"need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
"bingo1"
}
expect {

View file

@ -27,6 +27,7 @@ send -- "firemon --cgroup\r"
sleep 4
expect {
timeout {puts "TESTING ERROR 2\n";exit}
"need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
"name=test1"
}
expect {

View file

@ -27,6 +27,7 @@ send -- "firemon --cpu\r"
sleep 4
expect {
timeout {puts "TESTING ERROR 2\n";exit}
"need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
"name=test1"
}
expect {

View file

@ -29,6 +29,7 @@ spawn $env(SHELL)
send -- "firemon --seccomp\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
"bingo1"
}
expect {

View file

@ -82,18 +82,18 @@ rm -f index.html*
./trace.exp
rm -f index.html*
echo "TESTING: firemon --seccomp (test/utils/seccomp.exp)"
./seccomp.exp
echo "TESTING: firemon --caps (test/utils/caps.exp)"
./caps.exp
echo "TESTING: top (test/utils/top.exp)"
./top.exp
echo "TESTING: file transfer (test/utils/ls.exp)"
./ls.exp
echo "TESTING: firemon --seccomp (test/utils/firemon-seccomp.exp)"
./firemon-seccomp.exp
echo "TESTING: firemon --caps (test/utils/firemon-caps.exp)"
./firemon-caps.exp
echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)"
./firemon-cpu.exp

1
todo
View file

@ -284,5 +284,6 @@ removable media, partitions, software RAID volumes, logical volumes, and files.
free(dbus_path);
}
29. grsecurity - move test after "firejail --name=blablabla" in /test/apps*