[tor-commits] [onionperf/master] Set DataDirectoryGroupReadable 1 in torrc.

karsten at torproject.org karsten at torproject.org
Wed Apr 29 10:43:59 UTC 2020


commit 82410d88e095b8266df58b6652d83ea4ad0968e0
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Wed Apr 29 12:42:35 2020 +0200

    Set DataDirectoryGroupReadable 1 in torrc.
    
    The effect is that the onionperf-data/tor-{client,server}/ directories
    will be group readable and can be served by the web server.
---
 onionperf/measurement.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/onionperf/measurement.py b/onionperf/measurement.py
index e1c95a6..467ff61 100644
--- a/onionperf/measurement.py
+++ b/onionperf/measurement.py
@@ -369,7 +369,7 @@ class Measurement(object):
         """
 
         tor_config_template = self.base_config + "RunAsDaemon 0\nORPort 0\nDirPort 0\nControlPort {0}\nSocksPort {1}\nSocksListenAddress 127.0.0.1\nClientOnly 1\n\
-WarnUnsafeSocks 0\nSafeLogging 0\nMaxCircuitDirtiness 60 seconds\nDataDirectory {2}\nLog INFO stdout\n"
+WarnUnsafeSocks 0\nSafeLogging 0\nMaxCircuitDirtiness 60 seconds\nDataDirectory {2}\nDataDirectoryGroupReadable 1\nLog INFO stdout\n"
         tor_config = tor_config_template.format(control_port, socks_port, tor_datadir)
         if name == "server" and self.torserver_conf_file:
             with open(self.torserver_conf_file, 'r') as f:



More information about the tor-commits mailing list