#5442 NORM Never A: Stream tubes using Unix socket are broken in current Joyride

Zarro Boogs per Child bugtracker at laptop.org
Tue Dec 11 13:05:04 EST 2007


#5442: Stream tubes using Unix socket are broken in current Joyride
------------------------------+---------------------------------------------
  Reporter:  gdesmott         |       Owner:  smcv               
      Type:  defect           |      Status:  new                
  Priority:  normal           |   Milestone:  Never Assigned     
 Component:  telepathy-other  |     Version:                     
Resolution:                   |    Keywords:  rainbow-integration
  Verified:  0                |  
------------------------------+---------------------------------------------

Comment(by bemasc):

 Replying to [comment:10 mstone]:
 > os.tempnam() merely returns a file name; it doesn't actually create a
 file. (It's also racy). To create tmpfiles, use python's tempfile module.

 I wrote the code in question.  As you can see, the file I'm creating is
 actually a UNIX socket (named pipe).  From my reading of the tempfile
 docs, there is no way to create sockets using tempfile.  Also, the oft-
 mentioned security race is irrelevant under Rainbow, because each activity
 has its own $TMPDIR.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5442#comment:12>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list