[tor-bugs] #6937 [Tor Client]: SocksPipe or SocksSocket - an anonymous pipe to smoke network leakings bug out (of)

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Sep 23 01:16:51 UTC 2012


#6937: SocksPipe or SocksSocket - an anonymous pipe to smoke network leakings bug
out (of)
-------------------------------------+--------------------------------------
 Reporter:  ioerror                  |          Owner:                    
     Type:  enhancement              |         Status:  new               
 Priority:  normal                   |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor Client               |        Version:  Tor: unspecified  
 Keywords:  security needs-proposal  |         Parent:                    
   Points:                           |   Actualpoints:                    
-------------------------------------+--------------------------------------

Comment(by rransom):

 Replying to [comment:8 andrea]:
 > Named pipes aren't what you want at all.  I don't know how portable that
 assumption about interleaving is, and I think doing something like that
 most definitely breaks the whole "the interface to this looks like SOCKS5"
 thing.  Stick with AF_UNIX.

 From the `write(3posix)` man page (allegedly based on ‘IEEE Std 1003.1,
 2003 Edition’):
 {{{
        Write  requests to a pipe or FIFO shall be handled in the same way
 as a
        regular file with the following exceptions:

 ...

         * Write  requests of {PIPE_BUF} bytes or less shall not be
 interleaved
           with data from other processes doing writes on the same pipe.
 Writes
           of greater than {PIPE_BUF} bytes may have data interleaved, on
 arbi‐
           trary boundaries, with writes by other processes, whether or not
 the
           O_NONBLOCK flag of the file status flags is set.
 }}}

 (But getting a reply back to the right client is an exercise in
 reinventing AF_LOCAL.)

 > As for Windows IPC, I really don't know anything about Windows ... or
 have the ability to build for it, or test on it.

 Wine is not entirely broken for some simple programs, and MinGW can cross-
 build from a sane environment.

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


More information about the tor-bugs mailing list