Opened 6 years ago

Closed 6 years ago

#12032 closed defect (fixed)

Make tor handle rotated logs properly when Sandbox enabled

Reported by: alphawolf Owned by:
Priority: Medium Milestone: Tor: 0.2.5.x-final
Component: Core Tor/Tor Version: Tor:
Severity: Keywords: sandbox, logs
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


On a Debian Jessie box when logs are rotated, /var/log/tor/log is renamed to log.1, and then a fresh log file is created and tor SIGHUP'ed. (not necessarily in that order?) This works normally, but when Sandbox is enabled in torrc, tor continues to use log.1 instead of switching to the fresh log file.

I believe the important part of the configuration is just in /usr/share/tor/tor-service-defaults-torrc:

DataDirectory /var/lib/tor
PidFile /var/run/tor/
RunAsDaemon 1
User debian-tor

ControlSocket /var/run/tor/control
ControlSocketsGroupWritable 1

CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/run/tor/control.authcookie

Log notice file /var/log/tor/log


# other values stripped for brevity
Sandbox 1

Child Tickets

Change History (1)

comment:1 Changed 6 years ago by nickm

Resolution: fixed
Status: newclosed

This should be fixed in c21377e7bcc70d2a456409225d8b2d91990a14cd; please reopen if it isn't.

Note: See TracTickets for help on using tickets.