aboutsummaryrefslogtreecommitdiffstats
path: root/etc/tor.profile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/tor.profile')
-rw-r--r--etc/tor.profile47
1 files changed, 47 insertions, 0 deletions
diff --git a/etc/tor.profile b/etc/tor.profile
new file mode 100644
index 000000000..fcb123eef
--- /dev/null
+++ b/etc/tor.profile
@@ -0,0 +1,47 @@
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
12# #!/bin/bash
13# TORCMD="tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 1"
14# sudo -b daemon -f -d -- firejail --profile=/home/<username>/.config/firejail/tor.profile $TORCMD
15
16# You'll also likely want to disable the system service (if it exists)
17# Run mytor (or whatever you called the script above) whenever you want to start tor
18
19include /etc/firejail/disable-common.inc
20include /etc/firejail/disable-devel.inc
21include /etc/firejail/disable-passwdmgr.inc
22include /etc/firejail/disable-programs.inc
23
24caps.keep setuid,setgid,net_bind_service,dac_read_search
25ipc-namespace
26netfilter
27no3d
28nodvd
29nogroups
30nonewprivs
31nosound
32notv
33novideo
34protocol unix,inet,inet6
35seccomp
36shell none
37writable-var
38
39disable-mnt
40private
41private-bin tor,bash
42private-dev
43private-etc tor,passwd
44private-tmp
45
46noexec ${HOME}
47noexec /tmp