Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6e44aeabf79b598e42df48c2e07d8a22cb91e8de
Ticket: 219334ffffffffffffffffffffffffffffffffff
tclsh needs a -setuid and -setgid command line argument
User & Date: nobody on 2000-10-26 05:10:54
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5082 RFE
    Version: 8.3.1
    SubmitDate: '2000-04-14'
    LastModified: '2000-04-14'
    Severity: MED
    Status: UnAssn
    Submitter: welch
    ChangedBy: welch
    OS: All Unix
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    The tcl shells should process a -setuid and -setgid command line
    argument before the Tcl interpreter is initialized.  The problem is
    that if the setuid is done after the Notifier thread (or any other thread)
    then on many systems only the main thread changes user ID.  After that,
    the signals used between threads by the pthread implementation fail,
    therefore condition variables don't work, therefore Tcl locks up.
    
    It gets worse.  If the Tcl shell wants to open a privileged socket port,
    it can only do this as root.  I'm not sure, but it may be possible
    to temporarily restore the main thread to root, open the socket,
    and then switch back.  I think setuid lets you do this sort of thing.
    
    
    
  4. foundin changed to: "obsolete: 8.3.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "49. Threading"
  10. title changed to:
    tclsh needs a -setuid and -setgid command line argument
    
  11. type changed to: "RFE"