[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #12032 [Tor]: Make tor handle rotated logs properly when Sandbox enabled
#12032: Make tor handle rotated logs properly when Sandbox enabled
---------------------------+------------------------------------
Reporter: alphawolf | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.5.x-final
Component: Tor | Version: Tor: 0.2.5.4-alpha
Keywords: sandbox, logs | Actual Points:
Parent ID: | Points:
---------------------------+------------------------------------
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/tor.pid
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
}}}
torrc:
{{{
# other values stripped for brevity
Sandbox 1
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12032>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs