| 1 |
# Firejail profile for hledger |
| 2 |
# Description: Plain text accounting software (CLI) |
| 3 |
# This file is overwritten after every install/update |
| 4 |
quiet |
| 5 |
# Persistent local customizations |
| 6 |
include hledger.local |
| 7 |
# Persistent global definitions |
| 8 |
include globals.local |
| 9 |
|
| 10 |
noblacklist ${HOME}/.hledger.journal |
| 11 |
|
| 12 |
# Allow /bin/sh (blacklisted by disable-shell.inc) |
| 13 |
include allow-bin-sh.inc |
| 14 |
|
| 15 |
blacklist ${RUNUSER} |
| 16 |
blacklist /usr/libexec |
| 17 |
|
| 18 |
include disable-common.inc |
| 19 |
include disable-devel.inc |
| 20 |
include disable-exec.inc |
| 21 |
include disable-interpreters.inc |
| 22 |
include disable-proc.inc |
| 23 |
include disable-programs.inc |
| 24 |
include disable-shell.inc |
| 25 |
# Superseded by disable-mnt |
| 26 |
#include disable-write-mnt.inc |
| 27 |
# Superseded by x11 none |
| 28 |
#include disable-x11.inc |
| 29 |
include disable-xdg.inc |
| 30 |
|
| 31 |
whitelist ${HOME}/.hledger.journal |
| 32 |
include whitelist-common.inc |
| 33 |
include whitelist-run-common.inc |
| 34 |
include whitelist-runuser-common.inc |
| 35 |
include whitelist-usr-share-common.inc |
| 36 |
include whitelist-var-common.inc |
| 37 |
|
| 38 |
apparmor |
| 39 |
caps.drop all |
| 40 |
ipc-namespace |
| 41 |
machine-id |
| 42 |
net none |
| 43 |
no3d |
| 44 |
nodvd |
| 45 |
nogroups |
| 46 |
noinput |
| 47 |
nonewprivs |
| 48 |
noprinters |
| 49 |
noroot |
| 50 |
nosound |
| 51 |
notv |
| 52 |
nou2f |
| 53 |
novideo |
| 54 |
seccomp |
| 55 |
seccomp.block-secondary |
| 56 |
x11 none |
| 57 |
|
| 58 |
disable-mnt |
| 59 |
private-cache |
| 60 |
private-dev |
| 61 |
private-etc terminfo |
| 62 |
private-tmp |
| 63 |
|
| 64 |
dbus-user none |
| 65 |
dbus-system none |
| 66 |
|
| 67 |
deterministic-shutdown |
| 68 |
#memory-deny-write-execute # breaks haskell (ghc) |