mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
from my overrides
- add seccomp.block-secondary to a lot profiles - add wruc to firefox-common and ignore it in TB and firefox-common-addons - harden dia, gnome-keyring, libreoffice, megaglest, pngquant, ghostwriter, rhythmbox, sqlitebrowser
This commit is contained in:
parent
bd539dab77
commit
096d0de5f8
60 changed files with 90 additions and 5 deletions
|
|
@ -2,6 +2,8 @@
|
|||
# Persistent customizations should go in a .local file.
|
||||
include firefox-common-addons.local
|
||||
|
||||
ignore include whitelist-runuser-common.inc
|
||||
|
||||
noblacklist ${HOME}/.config/kgetrc
|
||||
noblacklist ${HOME}/.config/okularpartrc
|
||||
noblacklist ${HOME}/.config/okularrc
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ include disable-exec.inc
|
|||
include disable-interpreters.inc
|
||||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
mkdir ${HOME}/.cache/0ad
|
||||
mkdir ${HOME}/.config/0ad
|
||||
|
|
@ -40,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ noroot
|
|||
nou2f
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -9,16 +9,24 @@ include globals.local
|
|||
noblacklist ${HOME}/.dia
|
||||
noblacklist ${DOCUMENTS}
|
||||
|
||||
include allow-python2.inc
|
||||
include allow-python3.inc
|
||||
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
include disable-exec.inc
|
||||
include allow-python2.inc
|
||||
include allow-python3.inc
|
||||
include disable-interpreters.inc
|
||||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
#mkdir ${HOME}/.dia
|
||||
#whitelist ${HOME}/.dia
|
||||
#whitelist ${DOCUMENTS}
|
||||
#include whitelist-common.inc
|
||||
whitelist /usr/share/dia
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
apparmor
|
||||
|
|
@ -36,6 +44,7 @@ novideo
|
|||
protocol unix
|
||||
seccomp
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
disable-mnt
|
||||
#private-bin dia
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ apparmor
|
|||
caps.drop all
|
||||
ipc-namespace
|
||||
machine-id
|
||||
net none
|
||||
no3d
|
||||
nodvd
|
||||
nogroups
|
||||
|
|
@ -38,6 +39,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ novideo
|
|||
protocol inet,inet6
|
||||
# allow set_mempolicy, which is required to encode using libx265
|
||||
seccomp !set_mempolicy
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ whitelist ${DOWNLOADS}
|
|||
whitelist ${HOME}/.pki
|
||||
whitelist ${HOME}/.local/share/pki
|
||||
include whitelist-common.inc
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
apparmor
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
x11 none
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ whitelist /usr/share/texlive
|
|||
whitelist /usr/share/pandoc*
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
apparmor
|
||||
caps.drop all
|
||||
|
|
@ -41,6 +42,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6,netlink
|
||||
seccomp !chroot
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
#tracelog -- breaks
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
|
||||
disable-mnt
|
||||
private-dev
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@ include globals.local
|
|||
|
||||
noblacklist ${HOME}/.gnupg
|
||||
|
||||
whitelist ${HOME}/.gnupg
|
||||
whitelist ${DOWNLOADS}
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
include disable-exec.inc
|
||||
|
|
@ -19,9 +17,15 @@ include disable-interpreters.inc
|
|||
include disable-programs.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
mkdir ${HOME}/.gnupg
|
||||
whitelist ${HOME}/.gnupg
|
||||
whitelist ${DOWNLOADS}
|
||||
whitelist ${RUNUSER}/gnupg
|
||||
whitelist ${RUNUSER}/keyring
|
||||
whitelist /usr/share/gnupg
|
||||
whitelist /usr/share/gnupg2
|
||||
include whitelist-common.inc
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
|
|
@ -41,6 +45,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
@ -52,6 +57,6 @@ private-dev
|
|||
private-tmp
|
||||
|
||||
# dbus-user none
|
||||
# dbus-system none
|
||||
dbus-system none
|
||||
|
||||
memory-deny-write-execute
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ shell none
|
|||
# comment tracelog when using the ubuntu 18.04/debian 10 apparmor profile
|
||||
tracelog
|
||||
|
||||
#private-bin libreoffice,sh,uname,dirname,grep,sed,basename,ls
|
||||
private-cache
|
||||
private-dev
|
||||
private-tmp
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ include disable-exec.inc
|
|||
include disable-interpreters.inc
|
||||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
include disable-shell.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
mkdir ${HOME}/.megaglest
|
||||
|
|
@ -37,6 +38,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ noroot
|
|||
nou2f
|
||||
protocol unix,inet,inet6,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
x11 none
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ noblacklist ${DOCUMENTS}
|
|||
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
include disable-exec.inc
|
||||
include disable-interpreters.inc
|
||||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
|
|
@ -40,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
x11 none
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ include pngquant.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
noblacklist ${PICTURES}
|
||||
|
||||
blacklist ${RUNUSER}/wayland-*
|
||||
|
||||
include disable-common.inc
|
||||
|
|
@ -16,6 +18,7 @@ include disable-interpreters.inc
|
|||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
include disable-shell.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
|
|
|
|||
|
|
@ -45,10 +45,12 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
private-bin rhythmbox,rhythmbox-client
|
||||
private-cache
|
||||
private-dev
|
||||
private-tmp
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
x11 none
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ include disable-programs.inc
|
|||
include disable-shell.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
|
|
@ -35,6 +36,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
|
||||
private-bin sqlitebrowser
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
x11 none
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,netlink
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ include thunderbird.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
ignore whitelist-runuser-common.inc
|
||||
|
||||
# writable-run-user and dbus are needed by enigmail
|
||||
ignore dbus-user none
|
||||
ignore dbus-system none
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@ whitelist ${HOME}/.config/vivaldi
|
|||
whitelist ${HOME}/.config/vivaldi-snapshot
|
||||
whitelist ${HOME}/.local/lib/vivaldi
|
||||
|
||||
#private-bin bash,cat,dirname,readlink,rm,vivaldi,vivaldi-stable,vivaldi-snapshot
|
||||
|
||||
# breaks vivaldi sync
|
||||
ignore dbus-user none
|
||||
ignore dbus-system none
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ nou2f
|
|||
novideo
|
||||
protocol inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ include globals.local
|
|||
#seccomp
|
||||
##seccomp !chroot
|
||||
##seccomp.drop SYSCALLS (see syscalls.txt)
|
||||
#seccomp.block-secondary
|
||||
#shell none
|
||||
#tracelog
|
||||
# Prefer 'x11 none' instead of 'blacklist /tmp/.X11-unix' if 'net none' is set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue