summaryrefslogtreecommitdiffstats
path: root/etc/tor.profile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/tor.profile')
-rw-r--r--etc/tor.profile38
1 files changed, 38 insertions, 0 deletions
diff --git a/etc/tor.profile b/etc/tor.profile
new file mode 100644
index 000000000..2e2172cad
--- /dev/null
+++ b/etc/tor.profile
@@ -0,0 +1,38 @@
1# Firejail profile for tor
2# This file is overwritten after every install/update
3# Persistent local customizations
4include /etc/firejail/tor.local
5# Persistent global definitions
6include /etc/firejail/globals.local
7
8# How to use:
9# Create a script called anything (e.g. mytor)
10# with the following contents:
11# #!/bin/bash
12# TORCMD="tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 1"
13# sudo -b daemon -f -d -- firejail --profile=/home/<username>/.config/firejail/tor.profile $TORCMD
14
15# You'll also likely want to disable the system service (if it exists)
16# Run mytor (or whatever you called the script above) whenever you want to start tor
17
18blacklist /boot
19blacklist /media
20blacklist /mnt
21blacklist /opt
22
23caps.keep setuid,setgid,net_bind_service,dac_read_search
24ipc-namespace
25no3d
26nogroups
27nonewprivs
28nosound
29seccomp
30shell none
31writable-var
32x11 none
33
34private
35private-bin tor,bash
36private-dev
37private-etc tor,passwd
38private-tmp