mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-22 06:05:38 -06:00
commit
0b818f13fd
8 changed files with 344 additions and 22 deletions
|
|
@ -324,11 +324,13 @@ blacklist ${HOME}/.config/mpd
|
|||
blacklist ${HOME}/.config/mps-youtube
|
||||
blacklist ${HOME}/.config/mpv
|
||||
blacklist ${HOME}/.config/mupen64plus
|
||||
blacklist ${HOME}/.config/mutt
|
||||
blacklist ${HOME}/.config/mutter
|
||||
blacklist ${HOME}/.config/mypaint
|
||||
blacklist ${HOME}/.config/nano
|
||||
blacklist ${HOME}/.config/nautilus
|
||||
blacklist ${HOME}/.config/nemo
|
||||
blacklist ${HOME}/.config/neomutt
|
||||
blacklist ${HOME}/.config/netsurf
|
||||
blacklist ${HOME}/.config/newsbeuter
|
||||
blacklist ${HOME}/.config/newsflash
|
||||
|
|
@ -918,6 +920,7 @@ blacklist ${HOME}/.cache/evolution
|
|||
blacklist ${HOME}/.cache/falkon
|
||||
blacklist ${HOME}/.cache/feedreader
|
||||
blacklist ${HOME}/.cache/flaska.net/trojita
|
||||
blacklist ${HOME}/.cache/folks
|
||||
blacklist ${HOME}/.cache/font-manager
|
||||
blacklist ${HOME}/.cache/fossamail
|
||||
blacklist ${HOME}/.cache/fractal
|
||||
|
|
|
|||
|
|
@ -18,10 +18,13 @@ whitelist ${HOME}/.claws-mail
|
|||
|
||||
whitelist /usr/share/doc/claws-mail
|
||||
|
||||
# private-bin claws-mail,curl,gpg,gpg2,gpg-agent,gpgsm,gpgme-config,pinentry,pinentry-gtk-2
|
||||
|
||||
dbus-user filter
|
||||
dbus-user.talk ca.desrt.dconf
|
||||
dbus-user.talk org.gnome.keyring.SystemPrompter
|
||||
# if you use the notification plugin you need to uncomment the below (or put them in your claws-mail.local)
|
||||
#ignore dbus-user none
|
||||
#dbus-user filter
|
||||
#dbus-user.talk org.freedesktop.Notifications
|
||||
# dbus-user.talk org.freedesktop.Notifications
|
||||
|
||||
# Redirect
|
||||
include email-common.profile
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ include email-common.local
|
|||
#include globals.local
|
||||
|
||||
noblacklist ${HOME}/.gnupg
|
||||
noblacklist ${HOME}/.mozilla
|
||||
noblacklist ${HOME}/.signature
|
||||
# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local
|
||||
# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
|
||||
|
|
@ -17,28 +18,34 @@ 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
|
||||
include disable-xdg.inc
|
||||
|
||||
whitelist ${DOCUMENTS}
|
||||
whitelist ${DOWNLOADS}
|
||||
mkfile ${HOME}/.config/mimeapps.list
|
||||
mkdir ${HOME}/.gnupg
|
||||
mkfile ${HOME}/.config/mimeapps.list
|
||||
mkfile ${HOME}/.signature
|
||||
whitelist ${HOME}/.config/mimeapps.list
|
||||
whitelist ${HOME}/.mozilla/firefox/profiles.ini
|
||||
whitelist ${HOME}/.gnupg
|
||||
whitelist ${HOME}/.signature
|
||||
whitelist ${DOCUMENTS}
|
||||
whitelist ${DOWNLOADS}
|
||||
# when storing mail outside the default ${HOME}/Mail path, 'whitelist' the custom path in your email-common.local
|
||||
whitelist ${HOME}/Mail
|
||||
whitelist ${RUNUSER}/gnupg
|
||||
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
|
||||
|
||||
apparmor
|
||||
caps.drop all
|
||||
machine-id
|
||||
netfilter
|
||||
no3d
|
||||
nodvd
|
||||
|
|
@ -51,22 +58,26 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
# disable-mnt
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gnupg,groups,gtk-2.0,gtk-3.0,hostname,hosts,hosts.conf,mailname,nsswitch.conf,passwd,pki,resolv.conf,selinux,ssl,xdg
|
||||
private-tmp
|
||||
|
||||
dbus-user none
|
||||
dbus-system none
|
||||
|
||||
# encrypting and signing email
|
||||
writable-run-user
|
||||
|
||||
dbus-system none
|
||||
|
||||
# If you want to read local mail stored in /var/mail, add the following to email-common.local:
|
||||
#noblacklist /var/mail
|
||||
#noblacklist /var/spool/mail
|
||||
#whitelist /var/mail
|
||||
#whitelist /var/spool/mail
|
||||
#writable-var
|
||||
|
||||
read-only ${HOME}/.mozilla/firefox/profiles.ini
|
||||
read-only ${HOME}/.signature
|
||||
|
|
|
|||
|
|
@ -4,28 +4,83 @@
|
|||
# Persistent local customizations
|
||||
include geary.local
|
||||
# Persistent global definitions
|
||||
# added by included profile
|
||||
#include globals.local
|
||||
|
||||
# Users have Geary set to open a browser by clicking a link in an email
|
||||
# We are not allowed to blacklist browser-specific directories
|
||||
|
||||
ignore dbus-user filter
|
||||
ignore dbus-system none
|
||||
ignore private-tmp
|
||||
include globals.local
|
||||
|
||||
noblacklist ${HOME}/.cache/evolution
|
||||
noblacklist ${HOME}/.cache/folks
|
||||
noblacklist ${HOME}/.cache/geary
|
||||
noblacklist ${HOME}/.config/evolution
|
||||
noblacklist ${HOME}/.config/geary
|
||||
noblacklist ${HOME}/.local/share/evolution
|
||||
noblacklist ${HOME}/.local/share/geary
|
||||
noblacklist ${HOME}/.mozilla
|
||||
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
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}/.cache/evolution
|
||||
mkdir ${HOME}/.cache/folks
|
||||
mkdir ${HOME}/.cache/geary
|
||||
mkdir ${HOME}/.config/evolution
|
||||
mkdir ${HOME}/.config/geary
|
||||
mkdir ${HOME}/.local/share/evolution
|
||||
mkdir ${HOME}/.local/share/geary
|
||||
whitelist ${DOWNLOADS}
|
||||
whitelist ${HOME}/.cache/evolution
|
||||
whitelist ${HOME}/.cache/folks
|
||||
whitelist ${HOME}/.cache/geary
|
||||
whitelist ${HOME}/.config/evolution
|
||||
whitelist ${HOME}/.config/geary
|
||||
whitelist ${HOME}/.local/share/evolution
|
||||
whitelist ${HOME}/.local/share/geary
|
||||
whitelist ${HOME}/.mozilla/firefox/profiles.ini
|
||||
whitelist /usr/share/geary
|
||||
include whitelist-common.inc
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
# allow Mozilla browsers
|
||||
# Redirect
|
||||
include firefox.profile
|
||||
apparmor
|
||||
caps.drop all
|
||||
machine-id
|
||||
netfilter
|
||||
no3d
|
||||
nodvd
|
||||
nogroups
|
||||
nonewprivs
|
||||
noroot
|
||||
nosound
|
||||
notv
|
||||
nou2f
|
||||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
# disable-mnt
|
||||
# Add 'ignore private-bin' to geary.local for hyperlink support
|
||||
private-bin geary
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc alternatives,ca-certificates,crypto-policies,fonts,hostname,hosts,pki,resolv.conf,ssl,xdg
|
||||
private-tmp
|
||||
|
||||
dbus-user filter
|
||||
dbus-user.own org.gnome.Geary
|
||||
dbus-user.talk ca.desrt.dconf
|
||||
dbus-user.talk org.freedesktop.secrets
|
||||
dbus-user.talk org.gnome.Contacts
|
||||
dbus-user.talk org.gnome.OnlineAccounts
|
||||
dbus-user.talk org.gnome.evolution.dataserver.AddressBook10
|
||||
dbus-user.talk org.gnome.evolution.dataserver.Sources5
|
||||
dbus-system none
|
||||
|
||||
read-only ${HOME}/.mozilla/firefox/profiles.ini
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
# Firejail profile for mutt
|
||||
# Description: Text-based mailreader supporting MIME, GPG, PGP and threading
|
||||
# This file is overwritten after every install/update
|
||||
quiet
|
||||
# Persistent local customizations
|
||||
include mutt.local
|
||||
# Persistent global definitions
|
||||
|
|
@ -8,15 +9,18 @@ include globals.local
|
|||
|
||||
noblacklist /var/mail
|
||||
noblacklist /var/spool/mail
|
||||
noblacklist ${DOCUMENTS}
|
||||
noblacklist ${HOME}/.Mail
|
||||
noblacklist ${HOME}/.bogofilter
|
||||
noblacklist ${HOME}/.cache/mutt
|
||||
noblacklist ${HOME}/.config/mutt
|
||||
noblacklist ${HOME}/.config/nano
|
||||
noblacklist ${HOME}/.elinks
|
||||
noblacklist ${HOME}/.emacs
|
||||
noblacklist ${HOME}/.emacs.d
|
||||
noblacklist ${HOME}/.gnupg
|
||||
noblacklist ${HOME}/.mail
|
||||
noblacklist ${HOME}/.mailcap
|
||||
noblacklist ${HOME}/.msmtprc
|
||||
noblacklist ${HOME}/.mutt
|
||||
noblacklist ${HOME}/.muttrc
|
||||
|
|
@ -34,15 +38,84 @@ noblacklist ${HOME}/sent
|
|||
blacklist /tmp/.X11-unix
|
||||
blacklist ${RUNUSER}/wayland-*
|
||||
|
||||
# Uncomment or put them in mutt.local for oauth.py,S/MIME
|
||||
|
||||
#include allow-perl.inc
|
||||
#include allow-python2.inc
|
||||
#include allow-python3.inc
|
||||
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
include disable-exec.inc
|
||||
include disable-interpreters.inc
|
||||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
mkdir ${HOME}/.Mail
|
||||
mkdir ${HOME}/.bogofilter
|
||||
mkdir ${HOME}/.cache/mutt
|
||||
mkdir ${HOME}/.config/mutt
|
||||
mkdir ${HOME}/.config/nano
|
||||
mkdir ${HOME}/.elinks
|
||||
mkdir ${HOME}/.emacs.d
|
||||
mkdir ${HOME}/.gnupg
|
||||
mkdir ${HOME}/.mail
|
||||
mkdir ${HOME}/.mutt
|
||||
mkdir ${HOME}/.vim
|
||||
mkdir ${HOME}/.w3m
|
||||
mkdir ${HOME}/Mail
|
||||
mkdir ${HOME}/mail
|
||||
mkdir ${HOME}/postponed
|
||||
mkdir ${HOME}/sent
|
||||
mkfile ${HOME}/.emacs
|
||||
mkfile ${HOME}/.mailcap
|
||||
mkfile ${HOME}/.msmtprc
|
||||
mkfile ${HOME}/.muttrc
|
||||
mkfile ${HOME}/.nanorc
|
||||
mkfile ${HOME}/.signature
|
||||
mkfile ${HOME}/.viminfo
|
||||
mkfile ${HOME}/.vimrc
|
||||
whitelist ${DOCUMENTS}
|
||||
whitelist ${DOWNLOADS}
|
||||
whitelist ${HOME}/.Mail
|
||||
whitelist ${HOME}/.bogofilter
|
||||
whitelist ${HOME}/.cache/mutt
|
||||
whitelist ${HOME}/.config/mutt
|
||||
whitelist ${HOME}/.config/nano
|
||||
whitelist ${HOME}/.elinks
|
||||
whitelist ${HOME}/.emacs
|
||||
whitelist ${HOME}/.emacs.d
|
||||
whitelist ${HOME}/.gnupg
|
||||
whitelist ${HOME}/.mail
|
||||
whitelist ${HOME}/.mailcap
|
||||
whitelist ${HOME}/.msmtprc
|
||||
whitelist ${HOME}/.mutt
|
||||
whitelist ${HOME}/.muttrc
|
||||
whitelist ${HOME}/.nanorc
|
||||
whitelist ${HOME}/.signature
|
||||
whitelist ${HOME}/.vim
|
||||
whitelist ${HOME}/.viminfo
|
||||
whitelist ${HOME}/.vimrc
|
||||
whitelist ${HOME}/.w3m
|
||||
whitelist ${HOME}/Mail
|
||||
whitelist ${HOME}/mail
|
||||
whitelist ${HOME}/postponed
|
||||
whitelist ${HOME}/sent
|
||||
whitelist /usr/share/gnupg
|
||||
whitelist /usr/share/gnupg2
|
||||
whitelist /usr/share/mutt
|
||||
whitelist /var/mail
|
||||
whitelist /var/spool/mail
|
||||
include whitelist-common.inc
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
apparmor
|
||||
caps.drop all
|
||||
ipc-namespace
|
||||
machine-id
|
||||
netfilter
|
||||
no3d
|
||||
nodvd
|
||||
|
|
@ -55,8 +128,23 @@ nou2f
|
|||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
# disable-mnt
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc alternatives,ca-certificates,crypto-policies,fonts,gai.conf,gcrypt,gnupg,gnutls,hostname,hosts,hosts.conf,mail,mailname,Mutt,Muttrc,Muttrc.d,nntpserver,nsswitch.conf,passwd,pki,resolv.conf,ssl,terminfo,xdg
|
||||
private-tmp
|
||||
writable-run-user
|
||||
writable-var
|
||||
|
||||
dbus-user none
|
||||
dbus-system none
|
||||
|
||||
memory-deny-write-execute
|
||||
read-only ${HOME}/.elinks
|
||||
read-only ${HOME}/.nanorc
|
||||
read-only ${HOME}/.signature
|
||||
read-only ${HOME}/.w3m
|
||||
|
|
|
|||
152
etc/profile-m-z/neomutt.profile
Normal file
152
etc/profile-m-z/neomutt.profile
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
# Firejail profile for neomutt
|
||||
# Description: Mutt fork with advanced features and better documentation
|
||||
# This file is overwritten after every install/update
|
||||
quiet
|
||||
# Persistent local customizations
|
||||
include neomutt.local
|
||||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
noblacklist ${DOCUMENTS}
|
||||
noblacklist ${HOME}/.Mail
|
||||
noblacklist ${HOME}/.bogofilter
|
||||
noblacklist ${HOME}/.config/mutt
|
||||
noblacklist ${HOME}/.config/nano
|
||||
noblacklist ${HOME}/.config/neomutt
|
||||
noblacklist ${HOME}/.elinks
|
||||
noblacklist ${HOME}/.emacs
|
||||
noblacklist ${HOME}/.emacs.d
|
||||
noblacklist ${HOME}/.gnupg
|
||||
noblacklist ${HOME}/.mail
|
||||
noblacklist ${HOME}/.mailcap
|
||||
noblacklist ${HOME}/.msmtprc
|
||||
noblacklist ${HOME}/.mutt
|
||||
noblacklist ${HOME}/.muttrc
|
||||
noblacklist ${HOME}/.nanorc
|
||||
noblacklist ${HOME}/.neomutt
|
||||
noblacklist ${HOME}/.neomuttrc
|
||||
noblacklist ${HOME}/.signature
|
||||
noblacklist ${HOME}/.vim
|
||||
noblacklist ${HOME}/.viminfo
|
||||
noblacklist ${HOME}/.vimrc
|
||||
noblacklist ${HOME}/.w3m
|
||||
noblacklist ${HOME}/Mail
|
||||
noblacklist ${HOME}/mail
|
||||
noblacklist ${HOME}/postponed
|
||||
noblacklist ${HOME}/sent
|
||||
noblacklist /var/mail
|
||||
noblacklist /var/spool/mail
|
||||
|
||||
blacklist /tmp/.X11-unix
|
||||
blacklist ${RUNUSER}/wayland-*
|
||||
|
||||
include allow-lua.inc
|
||||
|
||||
include disable-common.inc
|
||||
include disable-devel.inc
|
||||
include disable-exec.inc
|
||||
include disable-interpreters.inc
|
||||
include disable-passwdmgr.inc
|
||||
include disable-programs.inc
|
||||
include disable-xdg.inc
|
||||
|
||||
mkdir ${HOME}/.Mail
|
||||
mkdir ${HOME}/.bogofilter
|
||||
mkdir ${HOME}/.config/mutt
|
||||
mkdir ${HOME}/.config/nano
|
||||
mkdir ${HOME}/.config/neomutt
|
||||
mkdir ${HOME}/.elinks
|
||||
mkdir ${HOME}/.emacs.d
|
||||
mkdir ${HOME}/.gnupg
|
||||
mkdir ${HOME}/.mail
|
||||
mkdir ${HOME}/.mutt
|
||||
mkdir ${HOME}/.neomutt
|
||||
mkdir ${HOME}/.vim
|
||||
mkdir ${HOME}/.w3m
|
||||
mkdir ${HOME}/Mail
|
||||
mkdir ${HOME}/mail
|
||||
mkdir ${HOME}/postponed
|
||||
mkdir ${HOME}/sent
|
||||
mkfile ${HOME}/.emacs
|
||||
mkfile ${HOME}/.mailcap
|
||||
mkfile ${HOME}/.msmtprc
|
||||
mkfile ${HOME}/.muttrc
|
||||
mkfile ${HOME}/.nanorc
|
||||
mkfile ${HOME}/.neomuttrc
|
||||
mkfile ${HOME}/.signature
|
||||
mkfile ${HOME}/.viminfo
|
||||
mkfile ${HOME}/.vimrc
|
||||
whitelist ${DOCUMENTS}
|
||||
whitelist ${DOWNLOADS}
|
||||
whitelist ${HOME}/.Mail
|
||||
whitelist ${HOME}/.bogofilter
|
||||
whitelist ${HOME}/.config/mutt
|
||||
whitelist ${HOME}/.config/nano
|
||||
whitelist ${HOME}/.config/neomutt
|
||||
whitelist ${HOME}/.elinks
|
||||
whitelist ${HOME}/.emacs
|
||||
whitelist ${HOME}/.emacs.d
|
||||
whitelist ${HOME}/.gnupg
|
||||
whitelist ${HOME}/.mail
|
||||
whitelist ${HOME}/.mailcap
|
||||
whitelist ${HOME}/.msmtprc
|
||||
whitelist ${HOME}/.mutt
|
||||
whitelist ${HOME}/.muttrc
|
||||
whitelist ${HOME}/.nanorc
|
||||
whitelist ${HOME}/.neomutt
|
||||
whitelist ${HOME}/.neomuttrc
|
||||
whitelist ${HOME}/.signature
|
||||
whitelist ${HOME}/.vim
|
||||
whitelist ${HOME}/.viminfo
|
||||
whitelist ${HOME}/.vimrc
|
||||
whitelist ${HOME}/.w3m
|
||||
whitelist ${HOME}/Mail
|
||||
whitelist ${HOME}/mail
|
||||
whitelist ${HOME}/postponed
|
||||
whitelist ${HOME}/sent
|
||||
whitelist /usr/share/gnupg
|
||||
whitelist /usr/share/gnupg2
|
||||
whitelist /usr/share/neomutt
|
||||
whitelist /var/mail
|
||||
whitelist /var/spool/mail
|
||||
include whitelist-common.inc
|
||||
include whitelist-runuser-common.inc
|
||||
include whitelist-usr-share-common.inc
|
||||
include whitelist-var-common.inc
|
||||
|
||||
apparmor
|
||||
caps.drop all
|
||||
ipc-namespace
|
||||
machine-id
|
||||
netfilter
|
||||
no3d
|
||||
nodvd
|
||||
nogroups
|
||||
nonewprivs
|
||||
noroot
|
||||
nosound
|
||||
notv
|
||||
nou2f
|
||||
novideo
|
||||
protocol unix,inet,inet6
|
||||
seccomp
|
||||
seccomp.block-secondary
|
||||
shell none
|
||||
tracelog
|
||||
|
||||
# disable-mnt
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gnupg,hostname,hosts,hosts.conf,mail,mailname,Mutt,Muttrc,Muttrc.d,neomuttrc,neomuttrc.d,nntpserver,nsswitch.conf,passwd,pki,resolv.conf,ssl,xdg
|
||||
private-tmp
|
||||
writable-run-user
|
||||
writable-var
|
||||
|
||||
dbus-user none
|
||||
dbus-system none
|
||||
|
||||
memory-deny-write-execute
|
||||
read-only ${HOME}/.elinks
|
||||
read-only ${HOME}/.nanorc
|
||||
read-only ${HOME}/.signature
|
||||
read-only ${HOME}/.w3m
|
||||
|
|
@ -13,5 +13,14 @@ whitelist ${HOME}/.sylpheed-2.0
|
|||
|
||||
whitelist /usr/share/sylpheed
|
||||
|
||||
# private-bin curl,gpg,gpg2,gpg-agent,gpgsm,pinentry,pinentry-gtk-2,sylpheed
|
||||
|
||||
dbus-user filter
|
||||
dbus-user.talk ca.desrt.dconf
|
||||
dbus-user.talk org.freedesktop.secrets
|
||||
dbus-user.talk org.gnome.keyring.SystemPrompter
|
||||
# Uncomment below for notifications (or put them in your sylpheed.local)
|
||||
# dbus-user.talk org.freedesktop.Notifications
|
||||
|
||||
# Redirect
|
||||
include email-common.profile
|
||||
|
|
|
|||
|
|
@ -537,6 +537,7 @@ mypaint
|
|||
mypaint-ora-thumbnailer
|
||||
natron
|
||||
ncdu
|
||||
neomutt
|
||||
netactview
|
||||
nethack
|
||||
netsurf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue