aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar core_contingency <ccontingency@gmail.com>2019-08-20 17:57:32 -0700
committerLibravatar core_contingency <ccontingency@gmail.com>2019-08-21 15:11:03 -0700
commit7b968332937ca451016262947463924f847a159b (patch)
treed3050957dddbac6ccf75f5e7a5f5a20bfe3e7423
parentRefactor transmission profiles (#2920) (diff)
downloadfirejail-7b968332937ca451016262947463924f847a159b.tar.gz
firejail-7b968332937ca451016262947463924f847a159b.tar.zst
firejail-7b968332937ca451016262947463924f847a159b.zip
profiles: add i2p
-rw-r--r--etc/disable-programs.inc4
-rw-r--r--etc/i2prouter.profile64
2 files changed, 68 insertions, 0 deletions
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 @@
3include disable-programs.local 3include disable-programs.local
4 4
5blacklist ${HOME}/Arduino 5blacklist ${HOME}/Arduino
6blacklist ${HOME}/i2p
6blacklist ${HOME}/Monero/wallets 7blacklist ${HOME}/Monero/wallets
7blacklist ${HOME}/Nextcloud/Notes 8blacklist ${HOME}/Nextcloud/Notes
8blacklist ${HOME}/SoftMaker 9blacklist ${HOME}/SoftMaker
@@ -190,6 +191,7 @@ blacklist ${HOME}/.config/gpicview
190blacklist ${HOME}/.config/gthumb 191blacklist ${HOME}/.config/gthumb
191blacklist ${HOME}/.config/gwenviewrc 192blacklist ${HOME}/.config/gwenviewrc
192blacklist ${HOME}/.config/hexchat 193blacklist ${HOME}/.config/hexchat
194blacklist ${HOME}/.config/i2p
193blacklist ${HOME}/.config/inkscape 195blacklist ${HOME}/.config/inkscape
194blacklist ${HOME}/.config/inox 196blacklist ${HOME}/.config/inox
195blacklist ${HOME}/.config/iridium 197blacklist ${HOME}/.config/iridium
@@ -366,6 +368,7 @@ blacklist ${HOME}/.guayadeque
366blacklist ${HOME}/.hashcat 368blacklist ${HOME}/.hashcat
367blacklist ${HOME}/.hedgewars 369blacklist ${HOME}/.hedgewars
368blacklist ${HOME}/.hugin 370blacklist ${HOME}/.hugin
371blacklist ${HOME}/.i2p
369blacklist ${HOME}/.icedove 372blacklist ${HOME}/.icedove
370blacklist ${HOME}/.imagej 373blacklist ${HOME}/.imagej
371blacklist ${HOME}/.inkscape 374blacklist ${HOME}/.inkscape
@@ -505,6 +508,7 @@ blacklist ${HOME}/.local/share/gnome-twitch
505blacklist ${HOME}/.local/share/godot 508blacklist ${HOME}/.local/share/godot
506blacklist ${HOME}/.local/share/gradio 509blacklist ${HOME}/.local/share/gradio
507blacklist ${HOME}/.local/share/gwenview 510blacklist ${HOME}/.local/share/gwenview
511blacklist ${HOME}/.local/share/i2p
508blacklist ${HOME}/.local/share/kaffeine 512blacklist ${HOME}/.local/share/kaffeine
509blacklist ${HOME}/.local/share/kate 513blacklist ${HOME}/.local/share/kate
510blacklist ${HOME}/.local/share/kdenlive 514blacklist ${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 @@
1# Firejail profile for I2P
2# Description: A distributed anonymous network
3# This file is overwritten after every install/update
4# Persistent local customizations
5include i2prouter.local
6# Persistent global definitions
7include globals.local
8
9# Notice: default browser will 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 java installer instead
13
14# Only needed if i2prouter binary is not in home directory, ubuntu official ppa package does this
15ignore noexec ${HOME}
16
17noblacklist ${HOME}/.config/i2p
18noblacklist ${HOME}/.i2p
19noblacklist ${HOME}/.local/share/i2p
20noblacklist ${HOME}/i2p
21# Only needed if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this
22noblacklist /usr/sbin
23
24# Allow java (blacklisted by disable-devel.inc)
25include allow-java.inc
26include disable-common.inc
27include disable-devel.inc
28include disable-exec.inc
29include disable-interpreters.inc
30include disable-passwdmgr.inc
31include disable-programs.inc
32include disable-xdg.inc
33
34whitelist ${HOME}/.config/I2P
35whitelist ${HOME}/.i2p
36whitelist ${HOME}/.local/share/I2P
37whitelist ${HOME}/i2p
38# Only needed if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this
39whitelist /usr/sbin/wrapper*
40
41# May break I2P if wrapper is placed in the home directory
42# If using ubuntu official ppa, this should be fine to uncomment, as it puts wrapper in /usr/sbin/
43#apparmor
44caps.drop all
45ipc-namespace
46machine-id
47netfilter
48no3d
49nodvd
50nogroups
51nonewprivs
52nosound
53notv
54nou2f
55novideo
56protocol unix,inet,inet6
57seccomp.drop @default-nodebuggers
58shell none
59
60disable-mnt
61private-cache
62private-dev
63private-etc alternatives,ca-certificates,crypto-policies,pki,ssl,java-8-openjdk,i2p
64private-tmp