Skip to content

Commit

Permalink
hidepid part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Nov 11, 2016
1 parent cffa48d commit bb5b407
Show file tree
Hide file tree
Showing 33 changed files with 38 additions and 6 deletions.
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,4 @@ test-root:
test-overlay:
cd test/overlay; ./overlay.sh | grep TESTING

# mount -o remount,rw,hidepid=2 /proc
1 change: 1 addition & 0 deletions test/apps-x11-xorg/firefox.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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";}
}
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11-xorg/icedove.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11-xorg/transmission-gtk.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11/chromium.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11/firefox.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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";}
}
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11/icedove.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11/transmission-gtk.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps-x11/xterm.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/chromium.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/deluge.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/evince.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/fbreader.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/filezilla.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/firefox.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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";}
}
Expand Down
1 change: 1 addition & 0 deletions test/apps/gnome-mplayer.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/gthumb.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/hexchat.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/icedove.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/midori.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/opera.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/qbittorrent.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/transmission-gtk.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/transmission-qt.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/uget-gtk.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/vlc.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/apps/xchat.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/utils/caps.exp → test/utils/firemon-caps.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/utils/firemon-cgroup.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/utils/firemon-cpu.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/utils/seccomp.exp → test/utils/firemon-seccomp.exp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions test/utils/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions todo
Original file line number Diff line number Diff line change
Expand Up @@ -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*


0 comments on commit bb5b407

Please sign in to comment.