| 1 |
# Firejail profile for evince |
| 2 |
# Description: Document (PostScript, PDF) viewer |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include evince.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
# WARNING: This exposes information like file history from other programs. |
| 10 |
# You can add a blacklist for it in your evince.local for additional hardening if you can live with some restrictions. |
| 11 |
noblacklist ${HOME}/.local/share/gvfs-metadata |
| 12 |
|
| 13 |
noblacklist ${HOME}/.config/evince |
| 14 |
noblacklist ${DOCUMENTS} |
| 15 |
|
| 16 |
include allow-bin-sh.inc |
| 17 |
|
| 18 |
# uses libgdk-pixbuf and/or glycin - see #6906 |
| 19 |
#blacklist /usr/libexec |
| 20 |
|
| 21 |
include disable-common.inc |
| 22 |
include disable-devel.inc |
| 23 |
include disable-exec.inc |
| 24 |
include disable-interpreters.inc |
| 25 |
include disable-programs.inc |
| 26 |
include disable-shell.inc |
| 27 |
include disable-xdg.inc |
| 28 |
|
| 29 |
whitelist /usr/share/doc |
| 30 |
whitelist /usr/share/evince |
| 31 |
whitelist /usr/share/poppler |
| 32 |
whitelist /usr/share/tracker |
| 33 |
include whitelist-runuser-common.inc |
| 34 |
include whitelist-usr-share-common.inc |
| 35 |
include whitelist-var-common.inc |
| 36 |
|
| 37 |
caps.drop all |
| 38 |
machine-id |
| 39 |
#net none # breaks AppArmor on Ubuntu systems |
| 40 |
netfilter |
| 41 |
no3d |
| 42 |
nodvd |
| 43 |
nogroups |
| 44 |
noinput |
| 45 |
nonewprivs |
| 46 |
noroot |
| 47 |
nosound |
| 48 |
notv |
| 49 |
nou2f |
| 50 |
novideo |
| 51 |
protocol unix |
| 52 |
seccomp |
| 53 |
seccomp.block-secondary |
| 54 |
tracelog |
| 55 |
|
| 56 |
private-bin evince,evince-previewer,evince-thumbnailer,sh |
| 57 |
private-cache |
| 58 |
private-dev |
| 59 |
private-etc |
| 60 |
# private-lib might break two-page-view on some systems |
| 61 |
private-lib evince,gcc/*/*/libgcc_s.so.*,gcc/*/*/libstdc++.so.*,gconv,gdk-pixbuf-2.*,gio,gvfs/libgvfscommon.so,libarchive.so.*,libdjvulibre.so.*,libgconf-2.so.*,libgraphite2.so.*,libpoppler-glib.so.*,librsvg-2.so.*,libspectre.so.* |
| 62 |
private-tmp |
| 63 |
|
| 64 |
dbus-user filter |
| 65 |
dbus-user.talk ca.desrt.dconf |
| 66 |
dbus-user.talk org.gtk.vfs.Daemon |
| 67 |
dbus-user.talk org.gtk.vfs.Metadata |
| 68 |
dbus-system none |
| 69 |
|
| 70 |
restrict-namespaces |