mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
hidepid part 5
This commit is contained in:
parent
cffa48d80c
commit
bb5b4077e6
33 changed files with 38 additions and 6 deletions
|
|
@ -251,3 +251,4 @@ test-root:
|
|||
test-overlay:
|
||||
cd test/overlay; ./overlay.sh | grep TESTING
|
||||
|
||||
# mount -o remount,rw,hidepid=2 /proc
|
||||
|
|
|
|||
|
|
@ -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";}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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";}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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";}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
@ -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
1
todo
|
|
@ -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*
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue