diff options
author | 2017-09-02 11:24:14 -0400 | |
---|---|---|
committer | 2017-09-02 11:24:14 -0400 | |
commit | 9a4d18ecd528a2ba9245fc8dffa05f767d726573 (patch) | |
tree | e9cc5a26b1dc303844fd95317f838a0aca9120a1 /etc | |
parent | merges (diff) | |
parent | Merge branch 'master' into yb (diff) | |
download | firejail-9a4d18ecd528a2ba9245fc8dffa05f767d726573.tar.gz firejail-9a4d18ecd528a2ba9245fc8dffa05f767d726573.tar.zst firejail-9a4d18ecd528a2ba9245fc8dffa05f767d726573.zip |
Merge pull request #1519 from SpotComms/yb
Add a profile for Yandex Browser
Diffstat (limited to 'etc')
-rw-r--r-- | etc/disable-programs.inc | 4 | ||||
-rw-r--r-- | etc/yandex-browser.profile | 52 |
2 files changed, 37 insertions, 19 deletions
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 736ac1e89..b833a3f68 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc | |||
@@ -178,6 +178,8 @@ blacklist ${HOME}/.config/xmms2 | |||
178 | blacklist ${HOME}/.config/xplayer | 178 | blacklist ${HOME}/.config/xplayer |
179 | blacklist ${HOME}/.config/xreader | 179 | blacklist ${HOME}/.config/xreader |
180 | blacklist ${HOME}/.config/xviewer | 180 | blacklist ${HOME}/.config/xviewer |
181 | blacklist ${HOME}/.config/yandex-browser | ||
182 | blacklist ${HOME}/.config/yandex-browser-beta | ||
181 | blacklist ${HOME}/.config/zathura | 183 | blacklist ${HOME}/.config/zathura |
182 | blacklist ${HOME}/.config/zoomus.conf | 184 | blacklist ${HOME}/.config/zoomus.conf |
183 | blacklist ${HOME}/.conkeror.mozdev.org | 185 | blacklist ${HOME}/.conkeror.mozdev.org |
@@ -427,3 +429,5 @@ blacklist ${HOME}/.cache/vivaldi | |||
427 | blacklist ${HOME}/.cache/wesnoth | 429 | blacklist ${HOME}/.cache/wesnoth |
428 | blacklist ${HOME}/.cache/xmms2 | 430 | blacklist ${HOME}/.cache/xmms2 |
429 | blacklist ${HOME}/.cache/xreader | 431 | blacklist ${HOME}/.cache/xreader |
432 | blacklist ${HOME}/.cache/yandex-browser | ||
433 | blacklist ${HOME}/.cache/yandex-browser-beta | ||
diff --git a/etc/yandex-browser.profile b/etc/yandex-browser.profile index b1a26c3ea..bfb7b9d87 100644 --- a/etc/yandex-browser.profile +++ b/etc/yandex-browser.profile | |||
@@ -1,28 +1,42 @@ | |||
1 | # Chromium browser profile | 1 | # Firejail profile for yandex-browser |
2 | noblacklist ~/.config/yandex-browser-beta | 2 | # This file is overwritten after every install/update |
3 | # Persistent local customizations | ||
4 | include /etc/firejail/yandex-browser.local | ||
5 | # Persistent global definitions | ||
6 | include /etc/firejail/globals.local | ||
7 | |||
8 | noblacklist ~/.cache/yandex-browser | ||
3 | noblacklist ~/.cache/yandex-browser-beta | 9 | noblacklist ~/.cache/yandex-browser-beta |
10 | noblacklist ~/.config/yandex-browser | ||
11 | noblacklist ~/.config/yandex-browser-beta | ||
12 | noblacklist ~/.pki | ||
13 | |||
4 | include /etc/firejail/disable-common.inc | 14 | include /etc/firejail/disable-common.inc |
15 | include /etc/firejail/disable-devel.inc | ||
5 | include /etc/firejail/disable-programs.inc | 16 | include /etc/firejail/disable-programs.inc |
6 | 17 | ||
7 | # chromium is distributed with a perl script on Arch | 18 | mkdir ~/.cache/yandex-browser |
8 | # include /etc/firejail/disable-devel.inc | ||
9 | # | ||
10 | |||
11 | netfilter | ||
12 | |||
13 | whitelist ${DOWNLOADS} | ||
14 | mkdir ~/.config/yandex-browser-beta | ||
15 | whitelist ~/.config/yandex-browser-beta | ||
16 | mkdir ~/.cache/yandex-browser-beta | 19 | mkdir ~/.cache/yandex-browser-beta |
17 | whitelist ~/.cache/yandex-browser-beta | 20 | mkdir ~/.config/yandex-browser |
21 | mkdir ~/.config/yandex-browser-beta | ||
18 | mkdir ~/.pki | 22 | mkdir ~/.pki |
23 | whitelist ${DOWNLOADS} | ||
24 | whitelist ~/.cache/yandex-browser | ||
25 | whitelist ~/.cache/yandex-browser-beta | ||
26 | whitelist ~/.config/yandex-browser | ||
27 | whitelist ~/.config/yandex-browser-beta | ||
19 | whitelist ~/.pki | 28 | whitelist ~/.pki |
29 | include /etc/firejail/whitelist-common.inc | ||
30 | |||
31 | caps.keep sys_chroot,sys_admin | ||
32 | netfilter | ||
33 | nodvd | ||
34 | nogroups | ||
35 | notv | ||
36 | shell none | ||
20 | 37 | ||
21 | # lastpass, keepassx | 38 | private-dev |
22 | whitelist ~/.keepassx | 39 | # private-tmp - problems with multiple browser sessions |
23 | whitelist ~/.config/keepassx | ||
24 | whitelist ~/keepassx.kdbx | ||
25 | whitelist ~/.lastpass | ||
26 | whitelist ~/.config/lastpass | ||
27 | 40 | ||
28 | include /etc/firejail/whitelist-common.inc | 41 | noexec ${HOME} |
42 | noexec /tmp | ||