[tor-bugs] #3135 [Tor Relay]: Saveconf request can terminate tor
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Wed May 11 01:37:25 UTC 2011
#3135: Saveconf request can terminate tor
-----------------------+----------------------------------------------------
Reporter: atagar | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Tor Relay | Version:
Keywords: | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Hi, in a very weird edge case a controller issuing a saveconf request can
terminate Tor. I just reproed this with...
Tor v0.2.3.1-alpha-dev (git-e6980faec43504ac)
Repro steps:
1. Start tor with an open control port
2. Chown the torrc to root so the tor user lacks read/write permissions
3. Issue a SAVECONF request
4. Tor crashes with...
May 10 18:25:39.000 [warn] Could not open "/home/atagar/.tor/torrc":
Permission denied
Segmentation fault
The permissions on the torrc during the crash...
-rw------- 1 root atagar 274 2011-05-10 10:01 .tor/torrc
Here's the quick method for issuing the saveconf request via torctl:
{{{
>>> from TorCtl import TorCtl
>>> conn = TorCtl.connect()
>>> conn.sendAndRecv("SAVECONF\r\n")
}}}
Cheers! -Damian
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3135>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list