#1780: runInteractiveProcess broken with >2 processes on POSIX
-------------------------------+--------------------------------------------
 Reporter:  guest              |          Owner:          
     Type:  bug                |         Status:  new     
 Priority:  normal             |      Milestone:  6.8.3   
Component:  libraries/process  |        Version:  6.6.1   
 Severity:  normal             |     Resolution:          
 Keywords:                     |     Difficulty:  Unknown 
 Testcase:                     |   Architecture:  Multiple
       Os:  Multiple           |  
-------------------------------+--------------------------------------------
Changes (by Baughn):

 * cc: [EMAIL PROTECTED] (added)
  * os:  Linux => Multiple
  * architecture:  x86 => Multiple

Comment:

 A C programmer would be able to close any/all FDs between forking and
 execing; here, with the two operations folded into one, *not* closing FDs
 by default becomes an unavoidable security hole as well as everything
 else.

 I'd argue that not closing them violates the principle of having security
 by default - anyone who cares about FDs will know to mark them as not-
 automatically-closed; anyone who doesn't will likely be very surprised
 when a subprocess uses one they left over to overwrite their database,
 even by accident.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1780#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to