| 1 |
# Firejail profile for I2P |
| 2 |
# Description: A distributed anonymous network |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include i2prouter.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
# Notice: default browser will most likely not be able to automatically open, due to sandbox. |
| 10 |
# Auto-opening default browser can be disabled in the I2P router console. |
| 11 |
# This profile will not currently work with any Arch User Repository I2P packages, |
| 12 |
# use the distro-independent official I2P java installer instead. |
| 13 |
|
| 14 |
# Only needed when i2prouter binary resides in home directory (official I2P java installer does so). |
| 15 |
ignore noexec ${HOME} |
| 16 |
|
| 17 |
noblacklist ${HOME}/.config/i2p |
| 18 |
noblacklist ${HOME}/.i2p |
| 19 |
noblacklist ${HOME}/.local/share/i2p |
| 20 |
noblacklist ${HOME}/i2p |
| 21 |
# Only needed when wrapper resides in /usr/sbin/ (Ubuntu official I2P PPA package does so). |
| 22 |
noblacklist /usr/sbin |
| 23 |
|
| 24 |
# Allow java (blacklisted by disable-devel.inc) |
| 25 |
include allow-java.inc |
| 26 |
|
| 27 |
include disable-common.inc |
| 28 |
include disable-devel.inc |
| 29 |
include disable-exec.inc |
| 30 |
include disable-interpreters.inc |
| 31 |
include disable-programs.inc |
| 32 |
include disable-xdg.inc |
| 33 |
|
| 34 |
mkdir ${HOME}/.config/i2p |
| 35 |
mkdir ${HOME}/.i2p |
| 36 |
mkdir ${HOME}/.local/share/i2p |
| 37 |
mkdir ${HOME}/i2p |
| 38 |
whitelist ${HOME}/.config/i2p |
| 39 |
whitelist ${HOME}/.i2p |
| 40 |
whitelist ${HOME}/.local/share/i2p |
| 41 |
whitelist ${HOME}/i2p |
| 42 |
# Only needed when wrapper resides in /usr/sbin/ (Ubuntu official I2P PPA package does so). |
| 43 |
whitelist /usr/sbin/wrapper* |
| 44 |
|
| 45 |
include whitelist-common.inc |
| 46 |
|
| 47 |
# May break I2P if wrapper resides in the home directory (official I2P java installer does so). |
| 48 |
# When using the Ubuntu official I2P PPA it should be fine to add 'apparmor' to your i2prouter.local, |
| 49 |
# as it places the wrapper in /usr/sbin/ |
| 50 |
#apparmor |
| 51 |
caps.drop all |
| 52 |
ipc-namespace |
| 53 |
machine-id |
| 54 |
netfilter |
| 55 |
no3d |
| 56 |
nodvd |
| 57 |
nogroups |
| 58 |
noinput |
| 59 |
nonewprivs |
| 60 |
nosound |
| 61 |
notv |
| 62 |
nou2f |
| 63 |
novideo |
| 64 |
protocol unix,inet,inet6 |
| 65 |
seccomp |
| 66 |
|
| 67 |
disable-mnt |
| 68 |
private-cache |
| 69 |
private-dev |
| 70 |
private-etc @tls-ca,@x11,i2p,java* |
| 71 |
private-tmp |
| 72 |
|
| 73 |
restrict-namespaces |