added whois and dig profiles

This commit is contained in:
startx2017 2018-08-30 07:29:05 -04:00
parent bbac3af66e
commit ef4409e7b7
8 changed files with 131 additions and 3 deletions

View file

@ -167,4 +167,4 @@ We also keep a list of profile fixes for previous released versions in [etc-fixe
## New profiles ## New profiles
Microsoft Office Online, riot-desktop, gnome-mpv, snox, gradio, standardnotes-desktop, Microsoft Office Online, riot-desktop, gnome-mpv, snox, gradio, standardnotes-desktop,
shellcheck, patch, flameshot, rview, rvim, vimcat, vimdiff, vimpager, vimtutor, shellcheck, patch, flameshot, rview, rvim, vimcat, vimdiff, vimpager, vimtutor,
xxd, Beaker, electrum, clamtk, pybitmessage xxd, Beaker, electrum, clamtk, pybitmessage, dig, whois

View file

@ -19,7 +19,7 @@ firejail (0.9.56~rc1) baseline; urgency=low
* new profiles: ms-skype, ms-word, riot-desktop, gnome-mpv, snox, gradio, * new profiles: ms-skype, ms-word, riot-desktop, gnome-mpv, snox, gradio,
* new profiles: standardnotes-desktop, shellcheck, patch, flameshot, * new profiles: standardnotes-desktop, shellcheck, patch, flameshot,
* new profiles: rview, rvim, vimcat, vimdiff, vimpager, vimtutor, xxd, * new profiles: rview, rvim, vimcat, vimdiff, vimpager, vimtutor, xxd,
* new profiles: Beaker, electrum, clamtk, pybitmessage * new profiles: Beaker, electrum, clamtk, pybitmessage, dig, whois
-- netblue30 <netblue30@yahoo.com> Sat, 11 Aug 2018 08:00:00 -0500 -- netblue30 <netblue30@yahoo.com> Sat, 11 Aug 2018 08:00:00 -0500
firejail (0.9.54) baseline; urgency=low firejail (0.9.54) baseline; urgency=low

47
etc/dig.profile Normal file
View file

@ -0,0 +1,47 @@
quiet
# Firejail profile for dig
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/dig.local
# Persistent global definitions
include /etc/firejail/globals.local
include /etc/firejail/disable-common.inc
# include /etc/firejail/disable-devel.inc
# include /etc/firejail/disable-interpreters.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc
#include /etc/firejail/disable-xdg.inc
whitelist ~/.digrc
include /etc/firejail/whitelist-common.inc
include /etc/firejail/whitelist-var-common.inc
caps.drop all
# ipc-namespace
netfilter
no3d
nodbus
nodvd
nogroups
nonewprivs
noroot
nosound
notv
novideo
protocol unix,inet,inet6
seccomp
shell none
disable-mnt
private
private-bin sh,bash,dig
private-cache
private-dev
# private-etc resolv.conf
private-lib
private-tmp
memory-deny-write-execute
# noexec ${HOME}
# noexec /tmp

45
etc/whois.profile Normal file
View file

@ -0,0 +1,45 @@
quiet
# Firejail profile for whois
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/whois.local
# Persistent global definitions
include /etc/firejail/globals.local
include /etc/firejail/disable-common.inc
# include /etc/firejail/disable-devel.inc
# include /etc/firejail/disable-interpreters.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc
#include /etc/firejail/disable-xdg.inc
include /etc/firejail/whitelist-var-common.inc
caps.drop all
# ipc-namespace
netfilter
no3d
nodbus
nodvd
nogroups
nonewprivs
noroot
nosound
notv
novideo
protocol inet,inet6
seccomp
shell none
disable-mnt
private
private-bin sh,bash,whois
private-cache
private-dev
# private-etc hosts,services,whois.conf
private-lib
private-tmp
memory-deny-write-execute
# noexec ${HOME}
# noexec /tmp

View file

@ -94,6 +94,7 @@ deadbeef
deluge deluge
dex2jar dex2jar
dia dia
dig
digikam digikam
dillo dillo
dino dino
@ -442,6 +443,7 @@ weechat
weechat-curses weechat-curses
wesnoth wesnoth
wget wget
whois
wine wine
wire-desktop wire-desktop
wireshark wireshark

17
test/private-lib/dig.exp Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2018 Firejail Authors
# License GPL v2
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "firejail dig 1.1.1.1\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Query time"
}
after 100
puts "\nall done\n"

View file

@ -5,7 +5,7 @@
export MALLOC_CHECK_=3 export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
LIST="evince galculator gnome-calculator gedit leafpad mousepad pluma transmission-gtk xcalc atril gpicview eom eog" LIST="dig whois evince galculator gnome-calculator gedit leafpad mousepad pluma transmission-gtk xcalc atril gpicview eom eog"
for app in $LIST; do for app in $LIST; do

17
test/private-lib/whois.exp Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2018 Firejail Authors
# License GPL v2
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "firejail whois debian.org\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Domain Name"
}
after 100
puts "\nall done\n"