-
Notifications
You must be signed in to change notification settings - Fork 1
/
firejailed-tor-browser.profile
116 lines (100 loc) · 3.21 KB
/
firejailed-tor-browser.profile
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# vim: ft=firejail
# Copyright © 2019-2023 rusty-snake and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
###########################################################
# #
# HOWTO: Firejailed Tor Browser #
# https://github.com/rusty-snake/firejailed-tor-browser #
# #
###########################################################
# Report any issues at
# <https://github.com/rusty-snake/firejailed-tor-browser/issues/new>
# Persistent local customizations
include firejailed-tor-browser.local
# Note: PluggableTransports didn't work with this profile
# If you use X11:
#include firejailed-tor-browser-x11.inc
# If you use pulseaudio:
#ignore machine-id
#noblacklist /etc
#private-etc machine-id
ignore noexec ${HOME}
noblacklist ${HOME}/.firejailed-tor-browser
include allow-bin-sh.inc
blacklist /etc
blacklist /opt
blacklist /srv
blacklist /sys
blacklist /usr/games
blacklist /usr/libexec
blacklist /usr/local
blacklist /usr/src
blacklist /var
include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
include disable-shell.inc
include disable-X11.inc
include disable-xdg.inc
whitelist /run/user
whitelist ${RUNUSER}/pulse/native
whitelist ${RUNUSER}/wayland-0
whitelist /usr/share/glib-2.0/schemas/gschemas.compiled
whitelist /usr/share/icons/Adwaita
whitelist /usr/share/mime/magic
whitelist /usr/share/misc/magic
whitelist /usr/share/X11/xkb
caps.drop all
hostname host
ipc-namespace
machine-id
netfilter
# Disable hardware acceleration
#no3d
nodvd
nogroups
noinput
nonewprivs
noroot
# Disable sound, enable if you don't need
#nosound
notv
nou2f
novideo
protocol unix,inet,inet6
seccomp !chroot,!set_mempolicy,@memlock,@setuid,@timer,io_pgetevents
seccomp.block-secondary
seccomp-error-action kill
disable-mnt
private ${HOME}/.firejailed-tor-browser
private-bin bash,dirname,env,expr,file,getconf,grep,rm,sh
private-cache
private-dev
private-tmp
dbus-user none
dbus-system none
env GTK_THEME=Adwaita
env MOZ_ENABLE_WAYLAND=1
name firejailed-tor-browser
read-only ${HOME}
read-write ${HOME}/Browser