aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z/mullvad-browser.profile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/profile-m-z/mullvad-browser.profile')
-rw-r--r--etc/profile-m-z/mullvad-browser.profile97
1 files changed, 97 insertions, 0 deletions
diff --git a/etc/profile-m-z/mullvad-browser.profile b/etc/profile-m-z/mullvad-browser.profile
new file mode 100644
index 000000000..b9eb57743
--- /dev/null
+++ b/etc/profile-m-z/mullvad-browser.profile
@@ -0,0 +1,97 @@
1# Firejail profile for mullvad-browser
2# Description: Privacy-focused web browser developed in a collaboration between Mullvad VPN and the Tor Project
3# This file is overwritten after every install/update
4# Persistent local customizations
5include mullvad-browser.local
6# Persistent global definitions
7include globals.local
8
9# IMPORTANT ##########################################
10# The mullvad-browser can be downloaded from the official website
11# and installed manually or via the AUR for Arch Linux (derivatives).
12# The latter installs the browser under /opt/mullvad-browser, while
13# the former can be installed under ${HOME} just about anywhere.
14# If you decide to install it under ${HOME} this profile assumes to find
15# the browser files under ${HOME}/.local/share/mullvad-browser.
16# When you divert from that location you will need to make the needed
17# path adjustments yourself in the below instructions.
18####################################################
19
20# If you installed under ${HOME}, put the below line in your
21# mullvad-browser.local
22# Note: The relevant rule in /etc/apparmor.d/local/firejail-default will
23# need to be uncommented for the 'apparmor' option to work as expected.
24#ignore noexec ${HOME}
25
26noblacklist ${HOME}/.cache/mullvad/mullvadbrowser
27noblacklist ${HOME}/.config/mullvad-browser-flags.conf
28noblacklist ${HOME}/.local/share/mullvad-browser
29noblacklist ${HOME}/.mullvad/mullvadbrowser
30
31# Allow python 3 (blacklisted by disable-interpreters.inc)
32include allow-python3.inc
33
34blacklist /srv
35blacklist /sys/class/net
36blacklist /usr/libexec
37
38include disable-common.inc
39include disable-devel.inc
40include disable-exec.inc
41include disable-interpreters.inc
42include disable-proc.inc
43include disable-programs.inc
44include disable-xdg.inc
45
46mkdir ${HOME}/.cache/mullvad/mullvadbrowser
47mkdir ${HOME}/.local/share/mullvad-browser
48mkdir ${HOME}/.mullvad/mullvadbrowser
49mkfile ${HOME}/.config/mullvad-browser-flags.conf
50whitelist ${DOWNLOADS}
51whitelist ${HOME}/.cache/mullvad/mullvadbrowser
52whitelist ${HOME}/.config/mullvad-browser-flags.conf
53whitelist ${HOME}/.local/share/mullvad-browser
54whitelist ${HOME}/.mullvad/mullvadbrowser
55whitelist /opt/mullvad-browser
56include whitelist-common.inc
57include whitelist-run-common.inc
58include whitelist-runuser-common.inc
59include whitelist-usr-share-common.inc
60include whitelist-var-common.inc
61
62apparmor
63caps.drop all
64netfilter
65nodvd
66nogroups
67noinput
68nonewprivs
69noroot
70notv
71nou2f
72novideo
73protocol unix,inet,inet6
74seccomp !chroot
75seccomp.block-secondary
76#tracelog - may cause issues, see #1930
77
78disable-mnt
79private-bin bash,cat,cp,cut,dirname,env,expr,file,gpg,grep,gxmessage,id,kdialog,ln,mkdir,mullvad-browser,mv,python*,rm,sed,sh,tail,tar,tclsh,test,update-desktop-database,xmessage,xz,zenity
80private-dev
81private-etc @tls-ca
82#private-opt mullvad-browser - can cause slow startup
83private-tmp
84
85blacklist ${PATH}/curl
86blacklist ${PATH}/wget
87blacklist ${PATH}/wget2
88
89dbus-user filter
90dbus-user.own org.mozilla.mullvadbrowser.*
91dbus-system none
92
93# cfr. start-mullvad-browser
94# do not (try to) connect to the session manager
95rmenv SESSION_MANAGER
96
97#restrict-namespaces