From 7b968332937ca451016262947463924f847a159b Mon Sep 17 00:00:00 2001 From: core_contingency Date: Tue, 20 Aug 2019 17:57:32 -0700 Subject: profiles: add i2p --- etc/disable-programs.inc | 4 +++ etc/i2prouter.profile | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 etc/i2prouter.profile diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 36afb606a..d4808f413 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc @@ -3,6 +3,7 @@ include disable-programs.local blacklist ${HOME}/Arduino +blacklist ${HOME}/i2p blacklist ${HOME}/Monero/wallets blacklist ${HOME}/Nextcloud/Notes blacklist ${HOME}/SoftMaker @@ -190,6 +191,7 @@ blacklist ${HOME}/.config/gpicview blacklist ${HOME}/.config/gthumb blacklist ${HOME}/.config/gwenviewrc blacklist ${HOME}/.config/hexchat +blacklist ${HOME}/.config/i2p blacklist ${HOME}/.config/inkscape blacklist ${HOME}/.config/inox blacklist ${HOME}/.config/iridium @@ -366,6 +368,7 @@ blacklist ${HOME}/.guayadeque blacklist ${HOME}/.hashcat blacklist ${HOME}/.hedgewars blacklist ${HOME}/.hugin +blacklist ${HOME}/.i2p blacklist ${HOME}/.icedove blacklist ${HOME}/.imagej blacklist ${HOME}/.inkscape @@ -505,6 +508,7 @@ blacklist ${HOME}/.local/share/gnome-twitch blacklist ${HOME}/.local/share/godot blacklist ${HOME}/.local/share/gradio blacklist ${HOME}/.local/share/gwenview +blacklist ${HOME}/.local/share/i2p blacklist ${HOME}/.local/share/kaffeine blacklist ${HOME}/.local/share/kate blacklist ${HOME}/.local/share/kdenlive diff --git a/etc/i2prouter.profile b/etc/i2prouter.profile new file mode 100644 index 000000000..7f9a60237 --- /dev/null +++ b/etc/i2prouter.profile @@ -0,0 +1,64 @@ +# Firejail profile for I2P +# Description: A distributed anonymous network +# This file is overwritten after every install/update +# Persistent local customizations +include i2prouter.local +# Persistent global definitions +include globals.local + +# Notice: default browser will not be able to automatically open, due to sandbox. +# Auto-opening default browser can be disabled in the I2P router console. +# This profile will not currently work with any Arch User Repository i2p packages, +# use the distro-independent official java installer instead + +# Only needed if i2prouter binary is not in home directory, ubuntu official ppa package does this +ignore noexec ${HOME} + +noblacklist ${HOME}/.config/i2p +noblacklist ${HOME}/.i2p +noblacklist ${HOME}/.local/share/i2p +noblacklist ${HOME}/i2p +# Only needed if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this +noblacklist /usr/sbin + +# Allow java (blacklisted by disable-devel.inc) +include allow-java.inc +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-passwdmgr.inc +include disable-programs.inc +include disable-xdg.inc + +whitelist ${HOME}/.config/I2P +whitelist ${HOME}/.i2p +whitelist ${HOME}/.local/share/I2P +whitelist ${HOME}/i2p +# Only needed if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this +whitelist /usr/sbin/wrapper* + +# May break I2P if wrapper is placed in the home directory +# If using ubuntu official ppa, this should be fine to uncomment, as it puts wrapper in /usr/sbin/ +#apparmor +caps.drop all +ipc-namespace +machine-id +netfilter +no3d +nodvd +nogroups +nonewprivs +nosound +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp.drop @default-nodebuggers +shell none + +disable-mnt +private-cache +private-dev +private-etc alternatives,ca-certificates,crypto-policies,pki,ssl,java-8-openjdk,i2p +private-tmp -- cgit v1.2.3-70-g09d2