diff options
author | 2019-08-20 17:57:32 -0700 | |
---|---|---|
committer | 2019-08-21 15:11:03 -0700 | |
commit | 7b968332937ca451016262947463924f847a159b (patch) | |
tree | d3050957dddbac6ccf75f5e7a5f5a20bfe3e7423 /etc | |
parent | Refactor transmission profiles (#2920) (diff) | |
download | firejail-7b968332937ca451016262947463924f847a159b.tar.gz firejail-7b968332937ca451016262947463924f847a159b.tar.zst firejail-7b968332937ca451016262947463924f847a159b.zip |
profiles: add i2p
Diffstat (limited to 'etc')
-rw-r--r-- | etc/disable-programs.inc | 4 | ||||
-rw-r--r-- | etc/i2prouter.profile | 64 |
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 @@ | |||
3 | include disable-programs.local | 3 | include disable-programs.local |
4 | 4 | ||
5 | blacklist ${HOME}/Arduino | 5 | blacklist ${HOME}/Arduino |
6 | blacklist ${HOME}/i2p | ||
6 | blacklist ${HOME}/Monero/wallets | 7 | blacklist ${HOME}/Monero/wallets |
7 | blacklist ${HOME}/Nextcloud/Notes | 8 | blacklist ${HOME}/Nextcloud/Notes |
8 | blacklist ${HOME}/SoftMaker | 9 | blacklist ${HOME}/SoftMaker |
@@ -190,6 +191,7 @@ blacklist ${HOME}/.config/gpicview | |||
190 | blacklist ${HOME}/.config/gthumb | 191 | blacklist ${HOME}/.config/gthumb |
191 | blacklist ${HOME}/.config/gwenviewrc | 192 | blacklist ${HOME}/.config/gwenviewrc |
192 | blacklist ${HOME}/.config/hexchat | 193 | blacklist ${HOME}/.config/hexchat |
194 | blacklist ${HOME}/.config/i2p | ||
193 | blacklist ${HOME}/.config/inkscape | 195 | blacklist ${HOME}/.config/inkscape |
194 | blacklist ${HOME}/.config/inox | 196 | blacklist ${HOME}/.config/inox |
195 | blacklist ${HOME}/.config/iridium | 197 | blacklist ${HOME}/.config/iridium |
@@ -366,6 +368,7 @@ blacklist ${HOME}/.guayadeque | |||
366 | blacklist ${HOME}/.hashcat | 368 | blacklist ${HOME}/.hashcat |
367 | blacklist ${HOME}/.hedgewars | 369 | blacklist ${HOME}/.hedgewars |
368 | blacklist ${HOME}/.hugin | 370 | blacklist ${HOME}/.hugin |
371 | blacklist ${HOME}/.i2p | ||
369 | blacklist ${HOME}/.icedove | 372 | blacklist ${HOME}/.icedove |
370 | blacklist ${HOME}/.imagej | 373 | blacklist ${HOME}/.imagej |
371 | blacklist ${HOME}/.inkscape | 374 | blacklist ${HOME}/.inkscape |
@@ -505,6 +508,7 @@ blacklist ${HOME}/.local/share/gnome-twitch | |||
505 | blacklist ${HOME}/.local/share/godot | 508 | blacklist ${HOME}/.local/share/godot |
506 | blacklist ${HOME}/.local/share/gradio | 509 | blacklist ${HOME}/.local/share/gradio |
507 | blacklist ${HOME}/.local/share/gwenview | 510 | blacklist ${HOME}/.local/share/gwenview |
511 | blacklist ${HOME}/.local/share/i2p | ||
508 | blacklist ${HOME}/.local/share/kaffeine | 512 | blacklist ${HOME}/.local/share/kaffeine |
509 | blacklist ${HOME}/.local/share/kate | 513 | blacklist ${HOME}/.local/share/kate |
510 | blacklist ${HOME}/.local/share/kdenlive | 514 | 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 @@ | |||
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 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 | ||
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 if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this | ||
22 | noblacklist /usr/sbin | ||
23 | |||
24 | # Allow java (blacklisted by disable-devel.inc) | ||
25 | include allow-java.inc | ||
26 | include disable-common.inc | ||
27 | include disable-devel.inc | ||
28 | include disable-exec.inc | ||
29 | include disable-interpreters.inc | ||
30 | include disable-passwdmgr.inc | ||
31 | include disable-programs.inc | ||
32 | include disable-xdg.inc | ||
33 | |||
34 | whitelist ${HOME}/.config/I2P | ||
35 | whitelist ${HOME}/.i2p | ||
36 | whitelist ${HOME}/.local/share/I2P | ||
37 | whitelist ${HOME}/i2p | ||
38 | # Only needed if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this | ||
39 | whitelist /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 | ||
44 | caps.drop all | ||
45 | ipc-namespace | ||
46 | machine-id | ||
47 | netfilter | ||
48 | no3d | ||
49 | nodvd | ||
50 | nogroups | ||
51 | nonewprivs | ||
52 | nosound | ||
53 | notv | ||
54 | nou2f | ||
55 | novideo | ||
56 | protocol unix,inet,inet6 | ||
57 | seccomp.drop @default-nodebuggers | ||
58 | shell none | ||
59 | |||
60 | disable-mnt | ||
61 | private-cache | ||
62 | private-dev | ||
63 | private-etc alternatives,ca-certificates,crypto-policies,pki,ssl,java-8-openjdk,i2p | ||
64 | private-tmp | ||