|
| 1 | +# Firejail profile for fluffychat |
| 2 | +# Description: Easy to use matrix messenger |
| 3 | +# This file is overwritten after every install/update |
| 4 | +# Persistent local customizations |
| 5 | +include fluffychat.local |
| 6 | +# Persistent global definitions |
| 7 | +include globals.local |
| 8 | + |
| 9 | +noblacklist ${HOME}/.local/share/fluffychat |
| 10 | + |
| 11 | +# Allow /bin/sh (blacklisted by disable-shell.inc) |
| 12 | +include allow-bin-sh.inc |
| 13 | + |
| 14 | +include disable-common.inc |
| 15 | +include disable-devel.inc |
| 16 | +include disable-exec.inc |
| 17 | +include disable-interpreters.inc |
| 18 | +include disable-proc.inc |
| 19 | +include disable-programs.inc |
| 20 | +include disable-shell.inc |
| 21 | +include disable-xdg.inc |
| 22 | + |
| 23 | +# The lines below are needed to find the default Firefox profile name, to allow |
| 24 | +# opening links in an existing instance of Firefox (note that it still fails if |
| 25 | +# there isn't a Firefox instance running with the default profile; see #5352) |
| 26 | +noblacklist ${HOME}/.mozilla |
| 27 | +whitelist ${HOME}/.mozilla/firefox/profiles.ini |
| 28 | +read-only ${HOME}/.mozilla/firefox/profiles.ini |
| 29 | + |
| 30 | +mkdir ${HOME}/.local/share/fluffychat |
| 31 | +whitelist ${DOWNLOADS} |
| 32 | +whitelist ${HOME}/.local/share/fluffychat |
| 33 | +whitelist /opt/fluffychat |
| 34 | +whitelist /usr/share/fluffychat |
| 35 | +include whitelist-common.inc |
| 36 | +include whitelist-run-common.inc |
| 37 | +include whitelist-runuser-common.inc |
| 38 | +include whitelist-usr-share-common.inc |
| 39 | +include whitelist-var-common.inc |
| 40 | + |
| 41 | +apparmor |
| 42 | +caps.drop all |
| 43 | +netfilter |
| 44 | +no3d |
| 45 | +nodvd |
| 46 | +nogroups |
| 47 | +noinput |
| 48 | +nonewprivs |
| 49 | +noprinters |
| 50 | +noroot |
| 51 | +notv |
| 52 | +nou2f |
| 53 | +novideo |
| 54 | +protocol unix,inet,inet6 |
| 55 | +seccomp |
| 56 | +seccomp.block-secondary |
| 57 | +tracelog |
| 58 | + |
| 59 | +disable-mnt |
| 60 | +private-bin firefox,fluffychat,sh,which,zenity |
| 61 | +private-cache |
| 62 | +private-dev |
| 63 | +private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,gconf,gtk-3.0,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nsswitch.conf,pango,pki,protocols,pulse,resolv.conf,rpc,services,ssl,X11,xdg |
| 64 | +private-tmp |
| 65 | + |
| 66 | +dbus-user filter |
| 67 | +dbus-user.talk org.freedesktop.secrets |
| 68 | +# allow D-Bus communication with firefox for opening links |
| 69 | +dbus-user.talk org.mozilla.* |
| 70 | +dbus-system filter |
| 71 | +dbus-system.talk org.freedesktop.NetworkManager |
| 72 | + |
| 73 | +restrict-namespaces |
0 commit comments