mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Main changes:
* Remove the space after `#` for commented code lines to distinguish
them from normal comments
* Use `#` instead of `-` for comments at the end of the line so that
commented code lines work after being uncommented
Commands used to search and replace:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git ls-files -z -- etc/inc etc/profile* | xargs -0 -I '{}' \
sh -c "printf '%s\n' \"\$(sed -E \
-e 's/^# ($arg0)( [#-]-? .*)?\$/#\\1\\2/' \
-e 's/^# ($arg1)( [^ ]*)?( [#-]-? .*)?\$/#\\1\\2\\3/' \
-e 's/^# (whitelist \\$)/#\\1/' \
-e 's/^(#[^ ].+) --? /\\1 # /' \
'{}')\" >'{}'"
Commands used to check for leftover entries:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git grep -E "^# ($arg0|$arg1)( +|$)" -- etc/inc etc/profile*
See also commit 30f9ad908 ("build: improve comments in firecfg.config",
2023-08-05) / PR #5942.
97 lines
2.4 KiB
Text
97 lines
2.4 KiB
Text
# Firejail profile for email-common
|
|
# Description: Common profile for GUI mail clients
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include email-common.local
|
|
# Persistent global definitions
|
|
# added by caller profile
|
|
#include globals.local
|
|
|
|
noblacklist ${HOME}/.bogofilter
|
|
noblacklist ${HOME}/.bsfilter
|
|
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
|
|
noblacklist ${HOME}/Mail
|
|
noblacklist /var/lib/clamav
|
|
noblacklist /var/mail
|
|
noblacklist /var/spool/mail
|
|
|
|
noblacklist ${DOCUMENTS}
|
|
|
|
# Allow perl (blacklisted by disable-interpreters.inc)
|
|
include allow-perl.inc
|
|
|
|
include disable-common.inc
|
|
include disable-devel.inc
|
|
include disable-exec.inc
|
|
include disable-interpreters.inc
|
|
include disable-programs.inc
|
|
include disable-xdg.inc
|
|
|
|
mkdir ${HOME}/.gnupg
|
|
mkfile ${HOME}/.config/mimeapps.list
|
|
mkfile ${HOME}/.signature
|
|
whitelist ${HOME}/.bogofilter
|
|
whitelist ${HOME}/.bsfilter
|
|
whitelist ${HOME}/.config/mimeapps.list
|
|
whitelist ${HOME}/.gnupg
|
|
whitelist ${HOME}/.mozilla/firefox/profiles.ini
|
|
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/bogofilter
|
|
whitelist /usr/share/gnupg
|
|
whitelist /usr/share/gnupg2
|
|
whitelist /var/lib/clamav
|
|
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
|
|
machine-id
|
|
netfilter
|
|
no3d
|
|
nodvd
|
|
nogroups
|
|
noinput
|
|
nonewprivs
|
|
noroot
|
|
nosound
|
|
notv
|
|
nou2f
|
|
novideo
|
|
protocol unix,inet,inet6
|
|
seccomp
|
|
seccomp.block-secondary
|
|
tracelog
|
|
|
|
#disable-mnt
|
|
private-cache
|
|
private-dev
|
|
private-etc @tls-ca,@x11,bogofilter,bogofilter.cf,gnupg,hosts.conf,mailname,timezone
|
|
private-tmp
|
|
# encrypting and signing email
|
|
writable-run-user
|
|
writable-var
|
|
|
|
dbus-user filter
|
|
dbus-user.talk ca.desrt.dconf
|
|
dbus-user.talk org.freedesktop.Notifications
|
|
dbus-user.talk org.freedesktop.secrets
|
|
dbus-user.talk org.gnome.keyring.*
|
|
dbus-user.talk org.gnome.seahorse.*
|
|
dbus-user.talk org.mozilla.*
|
|
dbus-system none
|
|
|
|
read-only ${HOME}/.signature
|
|
restrict-namespaces
|