| 1 |
# Firejail profile for brave |
| 2 |
# Description: Web browser that blocks ads and trackers by default. |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include brave.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
# noexec /tmp is included in chromium-common.profile and breaks Brave |
| 10 |
ignore noexec /tmp |
| 11 |
# TOR is installed in ${HOME}. |
| 12 |
# Note: chromium-common.profile enables apparmor. To keep that intact, |
| 13 |
# uncomment the 'brave + tor' rule in /etc/apparmor.d/local/firejail-default. |
| 14 |
# Alternatively you can add 'ignore apparmor' to your brave.local. |
| 15 |
ignore noexec ${HOME} |
| 16 |
# Causes slow starts (#4604) |
| 17 |
ignore private-cache |
| 18 |
|
| 19 |
noblacklist ${HOME}/.cache/BraveSoftware |
| 20 |
noblacklist ${HOME}/.config/BraveSoftware |
| 21 |
noblacklist ${HOME}/.config/brave |
| 22 |
noblacklist ${HOME}/.config/brave-flags.conf |
| 23 |
# brave uses gpg for built-in password manager |
| 24 |
noblacklist ${HOME}/.gnupg |
| 25 |
|
| 26 |
mkdir ${HOME}/.cache/BraveSoftware |
| 27 |
mkdir ${HOME}/.config/BraveSoftware |
| 28 |
mkdir ${HOME}/.config/brave |
| 29 |
whitelist ${HOME}/.cache/BraveSoftware |
| 30 |
whitelist ${HOME}/.config/BraveSoftware |
| 31 |
whitelist ${HOME}/.config/brave |
| 32 |
whitelist ${HOME}/.config/brave-flags.conf |
| 33 |
whitelist ${HOME}/.gnupg |
| 34 |
|
| 35 |
# Brave sandbox needs read access to /proc/config.gz |
| 36 |
noblacklist /proc/config.gz |
| 37 |
|
| 38 |
# mpris |
| 39 |
dbus-user.own org.mpris.MediaPlayer2.brave.* |
| 40 |
|
| 41 |
# Redirect |
| 42 |
include chromium-common.profile |