blob: 8031c85b764fe229c9f5e7f326ddb82ab7c91331 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Firejail profile for firefox
# Description: Safe and easy web browser from Mozilla
# This file is overwritten after every install/update
# Persistent local customizations
include firefox.local
# Persistent global definitions
include globals.local
name firefox
noblacklist ${HOME}/.cache/mozilla
noblacklist ${HOME}/.mozilla
mkdir ${HOME}/.cache/mozilla/firefox
mkdir ${HOME}/.mozilla
whitelist ${HOME}/.cache/mozilla/firefox
whitelist ${HOME}/.mozilla
whitelist /usr/share/doc
whitelist /usr/share/firefox
whitelist /usr/share/gnome-shell/search-providers/firefox-search-provider.ini
whitelist /usr/share/gtk-doc/html
whitelist /usr/share/mozilla
whitelist /usr/share/webext
whitelist ${HOME}/repos/website
whitelist ${HOME}/repos/homelab_iac/docs
whitelist ${HOME}/documents/local_webpages/
whitelist ${HOME}/documents/downloads/
whitelist ${HOME}/documents/isos/
read-only ${HOME}/documents/isos
include whitelist-usr-share-common.inc
# Access to GPG and (limited-scope) passwords for browserpass
writable-run-user
noblacklist ${HOME}/.gnupg
whitelist ${HOME}/.gnupg
noblacklist ${RUNUSER}/gnupg
noblacklist ${HOME}/.local/share/password-store
whitelist ${HOME}/.local/share/password-store/web
whitelist ${HOME}/.local/share/password-store/homelab/user
whitelist ${HOME}/.local/share/password-store/homelab/proxmox
whitelist ${HOME}/.local/share/password-store/homelab/proxmox-backup
dbus-user filter
dbus-user.own org.mozilla.Firefox.*
dbus-user.own org.mozilla.firefox.*
dbus-user.own org.mpris.MediaPlayer2.firefox.*
ignore dbus-user none
noblacklist ${HOME}/.pki
noblacklist ${HOME}/.local/share/pki
mkdir ${HOME}/.pki
mkdir ${HOME}/.local/share/pki
whitelist ${DOWNLOADS}
whitelist ${HOME}/.pki
whitelist ${HOME}/.local/share/pki
include whitelist-common.inc
include whitelist-var-common.inc
apparmor
caps.drop all
#machine-id
netfilter
nodvd
nogroups
nonewprivs
noroot
notv
?BROWSER_DISABLE_U2F: nou2f
protocol unix,inet,inet6,netlink
seccomp !chroot
shell none
disable-mnt
?BROWSER_DISABLE_U2F: private-dev
private-tmp
dbus-user none
dbus-system none
include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-programs.inc
# Breaks GPG when enabled
#include whitelist-runuser-common.inc
|