firejail/etc/profile-a-l/gajim.profile
Kelvin M. Klann fda7560c49 profiles: standardize on just "GTK" on comments
For consistency and to reduce confusion.

The toolkit has been renamed from "GTK+" to just "GTK" in 2019[1].

Note: This also fixes some adjacent typos.

Commands used to search and replace:

    $ git grep -lz 'G[Tt][Kk]' -- etc | xargs -0 -I '{}' sh -c \
      "printf '%s\n' \"\$(sed -E \
        -e 's/G[Tt][Kk]\+?/GTK/g' \
        -e 's/GTK-.\.0/GTK/g' \
        -e 's/GTK base/GTK-base/g' \
        -e 's/GTK-base /GTK-based /g' \
        -e 's/Light weight/Lightweight/g' \
        -e 's/client with GTK/client made with GTK/g' '{}')\" >'{}'"

Misc: I noticed this on #5722.

[1] https://mail.gnome.org/archives/gtk-devel-list/2019-February/msg00000.html
2023-04-19 17:17:35 -03:00

80 lines
2 KiB
Text

# Firejail profile for gajim
# Description: GTK-based Jabber client
# This file is overwritten after every install/update
# Persistent local customizations
include gajim.local
# Persistent global definitions
include globals.local
noblacklist ${HOME}/.gnupg
noblacklist ${HOME}/.cache/gajim
noblacklist ${HOME}/.config/gajim
noblacklist ${HOME}/.local/share/gajim
# Allow python (blacklisted by disable-interpreters.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-programs.inc
# Add 'ignore include disable-xdg.inc' to your gajim.local if you need to whitelist folders other than ~/Downloads.
include disable-xdg.inc
mkdir ${HOME}/.gnupg
mkdir ${HOME}/.cache/gajim
mkdir ${HOME}/.config/gajim
mkdir ${HOME}/.local/share/gajim
whitelist ${HOME}/.gnupg
whitelist ${HOME}/.cache/gajim
whitelist ${HOME}/.config/gajim
whitelist ${HOME}/.local/share/gajim
whitelist ${DOWNLOADS}
whitelist ${RUNUSER}/gnupg
whitelist /usr/share/gajim
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
netfilter
nodvd
nogroups
noinput
nonewprivs
noroot
notv
nou2f
protocol unix,inet,inet6,netlink
seccomp
tracelog
disable-mnt
private-bin bash,gajim,gajim-history-manager,gpg,gpg2,paplay,python*,sh,zsh
private-cache
private-dev
private-etc @tls-ca,@x11
private-tmp
writable-run-user
dbus-user filter
dbus-user.own org.gajim.Gajim
dbus-user.talk org.gnome.Mutter.IdleMonitor
dbus-user.talk ca.desrt.dconf
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.secrets
dbus-user.talk org.kde.kwalletd5
dbus-user.talk org.mpris.MediaPlayer2.*
dbus-system filter
dbus-system.talk org.freedesktop.login1
# Add the next line to your gajim.local to enable location plugin support.
#dbus-system.talk org.freedesktop.GeoClue2
restrict-namespaces
join-or-start gajim