Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fecd15c5459744bf0fe44a78d302a76c823308f9
Ticket: 772581ffffffffffffffffffffffffffffffffff
children inherit 2 open pipes (security?)
User & Date: xtifr on 2003-07-16 20:23:55
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    As reported by Debian's SELinux (Security Enhanced
    Linux) maintainer, Russell Coker, in
    <http://bugs.debian.org/201062>: the threaded *nix
    versions of tcl seem to open a pair of pipes, and the
    filehandles are not set to close-on-exec.  Quoting
    Russell: "If the program runs in a different security
    context then these open file handles may allow the
    program to interfere with the operation of expect [or
    tclsh or whatever] and therefore gain undesired access
    to the system."
    
    Normally, of course, pipes should be inherited by
    children (that's their whole purpose), but these pipes
    seem to be used just for internal communications
    between threads, as far as I can tell.  I'm not 100%
    sure this is a bug, but if it is, then I'm fairly sure
    it's an important one, and should probably be fixed
    before 8.4.4 is released.
    
    cheers
    
  4. foundin changed to: "obsolete: 8.4.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "xtifr"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "children inherit 2 open pipes (security?)"
  11. type changed to: "Bug"