summaryrefslogtreecommitdiffstats
path: root/etc/tor.profile
diff options
context:
space:
mode:
authorLibravatar Chiraag Nataraj <chiraag.nataraj@gmail.com>2017-09-16 13:18:26 -0400
committerLibravatar Tad <tad@spotco.us>2017-09-18 18:24:13 -0400
commit9c833ae929f64fa54c5d8aa49e4a784803b805c8 (patch)
tree6a15f6bda1665adfb1ff58842b995a8a03bba921 /etc/tor.profile
parentAdd a profile for TeamSpeak3 (diff)
downloadfirejail-9c833ae929f64fa54c5d8aa49e4a784803b805c8.tar.gz
firejail-9c833ae929f64fa54c5d8aa49e4a784803b805c8.tar.zst
firejail-9c833ae929f64fa54c5d8aa49e4a784803b805c8.zip
Add 31 profiles
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