[tor-bugs] #25173 [Core Tor/Tor]: No Control Socket when DisableNetwork and User options are set

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 8 04:44:34 UTC 2018


#25173: No Control Socket when DisableNetwork and User options are set
--------------------------+------------------------------------
 Reporter:  iry           |          Owner:  (none)
     Type:  defect        |         Status:  needs_information
 Priority:  Medium        |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor  |        Version:  Tor: 0.3.1.9
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by arma):

 {{{
 #ifndef _WIN32
     /* We don't need to be root to create a UNIX socket, so defer until
 after
      * setuid. */
     const or_options_t *options = get_options();
     if (port->is_unix_addr && !geteuid() && (options->User) &&
         strcmp(options->User, "root"))
       continue;
 #endif /* !defined(_WIN32) */
 }}}

 is where we defer opening the control socket listener

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25173#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list