tor.profile 1.23 KB
Newer Older
1
# Firejail profile for tor
2
# Description: Anonymizing overlay network for TCP
3 4
# This file is overwritten after every install/update
# Persistent local customizations
5
include tor.local
6
# Persistent global definitions
7
include globals.local
8 9 10 11 12 13 14 15 16 17 18 19

# 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

20 21 22 23 24 25
include disable-common.inc
include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-xdg.inc
26 27 28 29 30 31 32 33 34 35 36

caps.keep setuid,setgid,net_bind_service,dac_read_search
ipc-namespace
machine-id
netfilter
no3d
nodvd
nogroups
nonewprivs
nosound
notv
37
nou2f
38 39 40 41 42 43 44 45 46
novideo
protocol unix,inet,inet6
seccomp
shell none
writable-var

disable-mnt
private
private-bin tor,bash
47
private-cache
48
private-dev
49
private-etc tor,passwd,ca-certificates,ssl,pki,crypto-policies
50 51 52 53
private-tmp

noexec ${HOME}
noexec /tmp