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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "obsolete: 8.3.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "49. Threading"
- title changed to:
tclsh needs a -setuid and -setgid command line argument
- type changed to: "RFE"