diff options
author | rusty-snake <print_hello_world+Public@protonmail.com> | 2019-08-21 22:28:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 22:28:16 +0000 |
commit | f6d967d0115cd170ffdd86a51db5115a85bcad2c (patch) | |
tree | 223853a866861fb84561a1396ffeb96437503937 | |
parent | Drop fonts from private-etc in transmission-remote-cli (diff) | |
parent | added i2prouter to firecfg (diff) | |
download | firejail-f6d967d0115cd170ffdd86a51db5115a85bcad2c.tar.gz firejail-f6d967d0115cd170ffdd86a51db5115a85bcad2c.tar.zst firejail-f6d967d0115cd170ffdd86a51db5115a85bcad2c.zip |
Merge pull request #2919 from corecontingency/master
Profiles: add I2P
-rw-r--r-- | etc/disable-programs.inc | 4 | ||||
-rw-r--r-- | etc/i2prouter.profile | 71 | ||||
-rw-r--r-- | src/firecfg/firecfg.config | 1 |
3 files changed, 76 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..1a44d8069 --- /dev/null +++ b/etc/i2prouter.profile | |||
@@ -0,0 +1,71 @@ | |||
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 in home directory, java installer 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 | |||
27 | include disable-common.inc | ||
28 | include disable-devel.inc | ||
29 | include disable-exec.inc | ||
30 | include disable-interpreters.inc | ||
31 | include disable-passwdmgr.inc | ||
32 | include disable-programs.inc | ||
33 | include disable-xdg.inc | ||
34 | |||
35 | mkdir ${HOME}/.config/i2p | ||
36 | mkdir ${HOME}/.i2p | ||
37 | mkdir ${HOME}/.local/share/i2p | ||
38 | mkdir ${HOME}/i2p | ||
39 | whitelist ${HOME}/.config/i2p | ||
40 | whitelist ${HOME}/.i2p | ||
41 | whitelist ${HOME}/.local/share/i2p | ||
42 | whitelist ${HOME}/i2p | ||
43 | # Only needed if wrapper is placed in /usr/sbin/, ubuntu official ppa package does this | ||
44 | whitelist /usr/sbin/wrapper* | ||
45 | |||
46 | include whitelist-common.inc | ||
47 | |||
48 | # May break I2P if wrapper is placed in the home directory | ||
49 | # If using ubuntu official ppa, this should be fine to uncomment, as it puts 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 | nonewprivs | ||
59 | nosound | ||
60 | notv | ||
61 | nou2f | ||
62 | novideo | ||
63 | protocol unix,inet,inet6 | ||
64 | seccomp | ||
65 | shell none | ||
66 | |||
67 | disable-mnt | ||
68 | private-cache | ||
69 | private-dev | ||
70 | private-etc alternatives,ca-certificates,crypto-policies,pki,ssl,java-8-openjdk,i2p | ||
71 | private-tmp | ||
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index daaa4919e..6b2a92ad5 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config | |||
@@ -278,6 +278,7 @@ hedgewars | |||
278 | hexchat | 278 | hexchat |
279 | highlight | 279 | highlight |
280 | hugin | 280 | hugin |
281 | i2prouter | ||
281 | icecat | 282 | icecat |
282 | icedove | 283 | icedove |
283 | iceweasel | 284 | iceweasel |