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.
79 lines
2.1 KiB
Text
79 lines
2.1 KiB
Text
# Firejail profile for psi
|
|
# Description: Native XMPP client with GPG support
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include psi.local
|
|
# Persistent global definitions
|
|
include globals.local
|
|
|
|
# Add the next line to your psi.local to enable GPG support.
|
|
#noblacklist ${HOME}/.gnupg
|
|
noblacklist ${HOME}/.cache/psi
|
|
noblacklist ${HOME}/.cache/Psi
|
|
noblacklist ${HOME}/.config/psi
|
|
noblacklist ${HOME}/.local/share/psi
|
|
noblacklist ${HOME}/.local/share/Psi
|
|
|
|
include disable-common.inc
|
|
include disable-devel.inc
|
|
include disable-exec.inc
|
|
include disable-interpreters.inc
|
|
include disable-programs.inc
|
|
include disable-shell.inc
|
|
include disable-xdg.inc
|
|
|
|
# Add the next line to your psi.local to enable GPG support.
|
|
#mkdir ${HOME}/.gnupg
|
|
mkdir ${HOME}/.cache/psi
|
|
mkdir ${HOME}/.cache/Psi
|
|
mkdir ${HOME}/.config/psi
|
|
mkdir ${HOME}/.local/share/psi
|
|
mkdir ${HOME}/.local/share/Psi
|
|
# Add the next line to your psi.local to enable GPG support.
|
|
#whitelist ${HOME}/.gnupg
|
|
whitelist ${HOME}/.cache/psi
|
|
whitelist ${HOME}/.cache/Psi
|
|
whitelist ${HOME}/.config/psi
|
|
whitelist ${HOME}/.local/share/psi
|
|
whitelist ${HOME}/.local/share/Psi
|
|
whitelist ${DOWNLOADS}
|
|
# Add the next lines to your psi.local to enable GPG support.
|
|
#whitelist /usr/share/gnupg
|
|
#whitelist /usr/share/gnupg2
|
|
whitelist /usr/share/psi
|
|
# Add the next lines to your psi.local to enable GPG support.
|
|
#whitelist ${RUNUSER}/gnupg
|
|
#whitelist ${RUNUSER}/keyring
|
|
include whitelist-common.inc
|
|
include whitelist-runuser-common.inc
|
|
include whitelist-usr-share-common.inc
|
|
include whitelist-var-common.inc
|
|
|
|
apparmor
|
|
caps.drop all
|
|
netfilter
|
|
nodvd
|
|
nogroups
|
|
noinput
|
|
nonewprivs
|
|
noroot
|
|
notv
|
|
novideo
|
|
nou2f
|
|
protocol unix,inet,inet6,netlink
|
|
seccomp !chroot
|
|
#tracelog # breaks on Arch
|
|
|
|
disable-mnt
|
|
# Add the next line to your psi.local to enable GPG support.
|
|
#private-bin gpg,gpg2,gpg-agent,pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet
|
|
private-bin getopt,psi
|
|
private-cache
|
|
private-dev
|
|
private-etc @tls-ca,@x11
|
|
private-tmp
|
|
|
|
dbus-user none
|
|
dbus-system none
|
|
|
|
#restrict-namespaces
|