aboutsummaryrefslogtreecommitdiffstats
path: root/etc/tor.profile
blob: 2e2172cad08f18171c867f62bdb02efef7a51e24 (plain) (blame)
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
# Firejail profile for tor
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/tor.local
# Persistent global definitions
include /etc/firejail/globals.local

# How to use:
# Create a script called anything (e.g. mytor)
# with the following contents:
# #!/bin/bash
# TORCMD="tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 1"
# sudo -b daemon -f -d -- firejail --profile=/home/<username>/.config/firejail/tor.profile $TORCMD

# You'll also likely want to disable the system service (if it exists)
# Run mytor (or whatever you called the script above) whenever you want to start tor

blacklist /boot
blacklist /media
blacklist /mnt
blacklist /opt

caps.keep setuid,setgid,net_bind_service,dac_read_search
ipc-namespace
no3d
nogroups
nonewprivs
nosound
seccomp
shell none
writable-var
x11 none

private
private-bin tor,bash
private-dev
private-etc tor,passwd
private-tmp