| 1 |
# Firejail profile for libreoffice |
| 2 |
# Description: Office productivity suite |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include libreoffice.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
ignore hostname-randomize |
| 10 |
|
| 11 |
noblacklist ${HOME}/.config/libreoffice |
| 12 |
noblacklist ${HOME}/.local/share/gvfs-metadata |
| 13 |
noblacklist /usr/local/sbin |
| 14 |
|
| 15 |
# libreoffice can sign documents with GPG |
| 16 |
noblacklist ${HOME}/.gnupg |
| 17 |
read-only ${HOME}/.gnupg/pubring.kbx |
| 18 |
read-only ${HOME}/.gnupg/trustdb.gpg |
| 19 |
blacklist ${HOME}/.gnupg/crls.d |
| 20 |
blacklist ${HOME}/.gnupg/openpgp-revocs.d |
| 21 |
blacklist ${HOME}/.gnupg/private-keys-v1.d |
| 22 |
blacklist ${HOME}/.gnupg/pubring.kbx~ |
| 23 |
blacklist ${HOME}/.gnupg/random_seed |
| 24 |
|
| 25 |
# libreoffice uses java for some functionality. |
| 26 |
# Add 'ignore include allow-java.inc' to your libreoffice.local if you don't need that functionality. |
| 27 |
# Allow java (blacklisted by disable-devel.inc) |
| 28 |
include allow-java.inc |
| 29 |
|
| 30 |
# uses libgdk-pixbuf and/or glycin - see #6906 |
| 31 |
#blacklist /usr/libexec |
| 32 |
|
| 33 |
include disable-common.inc |
| 34 |
include disable-devel.inc |
| 35 |
include disable-exec.inc |
| 36 |
include disable-programs.inc |
| 37 |
|
| 38 |
include whitelist-run-common.inc |
| 39 |
include whitelist-var-common.inc |
| 40 |
|
| 41 |
# Debian 10/Ubuntu 18.04 come with their own apparmor profile, but it is not in enforce mode. |
| 42 |
# Add the next lines to your libreoffice.local to use the Ubuntu profile instead of firejail's apparmor profile. |
| 43 |
#ignore apparmor |
| 44 |
#ignore nonewprivs |
| 45 |
#ignore protocol |
| 46 |
#ignore seccomp |
| 47 |
#ignore tracelog |
| 48 |
|
| 49 |
apparmor |
| 50 |
caps.drop all |
| 51 |
netfilter |
| 52 |
nodvd |
| 53 |
nogroups |
| 54 |
noinput |
| 55 |
nonewprivs |
| 56 |
noroot |
| 57 |
notv |
| 58 |
nou2f |
| 59 |
novideo |
| 60 |
protocol unix,inet,inet6 |
| 61 |
seccomp |
| 62 |
tracelog |
| 63 |
|
| 64 |
#private-bin libreoffice,sh,uname,dirname,grep,sed,basename,ls |
| 65 |
private-cache |
| 66 |
private-dev |
| 67 |
private-etc @tls-ca,@x11,cups,gnupg,libreoffice,papersize,ssh |
| 68 |
private-tmp |
| 69 |
|
| 70 |
dbus-system none |
| 71 |
|
| 72 |
restrict-namespaces |
| 73 |
join-or-start libreoffice |