diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2020-11-09 12:47:40 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2020-11-09 12:47:59 -0500 |
commit | 1b7eeddf3e05517493bcef669af7abb18877cb4c (patch) | |
tree | 5a9e96cc9898e99e69916075486ea2eb509fc6a0 /net-vpn/tor/files | |
parent | depend.apache.eclass: support EAPI-7 (diff) | |
download | gentoo-1b7eeddf3e05517493bcef669af7abb18877cb4c.tar.gz gentoo-1b7eeddf3e05517493bcef669af7abb18877cb4c.tar.bz2 gentoo-1b7eeddf3e05517493bcef669af7abb18877cb4c.zip |
net-vpn/tor: add new alpha, version 0.4.5.1_alpha
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'net-vpn/tor/files')
-rw-r--r-- | net-vpn/tor/files/tor.service | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-vpn/tor/files/tor.service b/net-vpn/tor/files/tor.service new file mode 100644 index 000000000000..16638240c544 --- /dev/null +++ b/net-vpn/tor/files/tor.service @@ -0,0 +1,38 @@ +# tor.service -- this systemd configuration file for Tor sets up a +# relatively conservative, hardened Tor service. You may need to +# edit it if you are making changes to your Tor configuration that it +# does not allow. Package maintainers: this should be a starting point +# for your tor.service; it is not the last point. + +[Unit] +Description=Anonymizing overlay network for TCP +After=syslog.target network.target nss-lookup.target + +[Service] +Type=notify +NotifyAccess=all +ExecStartPre=/usr/bin/tor -f /etc/tor/torrc --verify-config +ExecStart=/usr/bin/tor -f /etc/tor/torrc +ExecReload=/bin/kill -HUP ${MAINPID} +KillSignal=SIGINT +TimeoutSec=60 +Restart=on-failure +WatchdogSec=1m +LimitNOFILE=32768 + +# Hardening +Group=tor +RuntimeDirectory=tor +RuntimeDirectoryMode=0770 +PrivateTmp=yes +PrivateDevices=yes +ProtectHome=yes +ProtectSystem=full +ReadOnlyDirectories=/ +ReadWriteDirectories=-/var/lib/tor +ReadWriteDirectories=-/var/log/tor +NoNewPrivileges=yes +CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE + +[Install] +WantedBy=multi-user.target |