Skip to content
Tcl Source Code History Of Ticket 413100ffffffffff
Login

History Of Ticket 413100ffffffffff

Artifacts Associated With Ticket 413100ffffffffff

  1. Ticket change [5f17750265] (rid 115753) by lewandowski on 2001-04-02 11:17:36:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Fileevent don't work on transfered (thread::transfer)
      socket channel when using setuid extension (from
      tclhttpd).
      Command after works fine.
      
      I'am using: tclsh8.4a3, libthread2.2, setuid
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "lewandowski"
    9. subsystem initialized to: "02. Event Loops"
    10. title initialized to: "fileevent problem"
    11. type initialized to: "Bug"
  2. Ticket change [ad48684def] (rid 101448) by andreas_kupries on 2001-04-02 21:41:20:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      I don't understand "Command after works fine". Also, is it
      possible to attach a small script which exercises this
      problem ?
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  3. Add attachment "script" [20717d8353] (rid 91309) by lewandowski on 2001-04-03 14:08:56.

  4. Ticket change [27d079c6e4] (rid 88584) by lewandowski on 2001-04-03 14:08:57:

    1. icomment:
      
      
      File Added - 4896: script
      
      
      
    2. login: "lewandowski"
    3. mimetype: "text/plain"
    4. username: "lewandowski"
  5. Ticket change [ffa42fd12a] (rid 108782) by lewandowski on 2001-04-03 14:34:58:

    1. icomment:
      
      
      File Added - 4897: script
      
      
      
    2. login: "lewandowski"
    3. mimetype: "text/plain"
    4. username: "lewandowski"
  6. Add attachment "script" [6b25222208] (rid 128269) by lewandowski on 2001-04-03 14:34:58.

  7. Add attachment "server" [2788ee638e] (rid 88533) by lewandowski on 2001-04-03 14:43:20.

  8. Ticket change [c9e60e0301] (rid 122363) by lewandowski on 2001-04-03 14:43:20:

    1. icomment:
      Logged In: YES 
      user_id=174470
      
      if use setuid "fileevent" and "after" don't work
      if use setuid and disable "fileevent", "after" is fine.
      
      
      
    2. login: "lewandowski"
    3. mimetype: "text/plain"
    4. username: "lewandowski"
  9. Ticket change [cb6330e4c0] (rid 95503) by lewandowski on 2001-04-03 14:43:21:

    1. icomment:
      
      
      File Added - 4898: server
      
      
      
    2. login: "lewandowski"
    3. mimetype: "text/plain"
    4. username: "lewandowski"
  10. Ticket change [a65a93b7f1] (rid 98588) by lewandowski on 2001-04-03 14:51:41:

    1. icomment:
      Logged In: YES 
      user_id=174470
      
      Please use new version script (4897:script).
      I can't delete old (4896:script)
      
      
    2. login: "lewandowski"
    3. mimetype: "text/plain"
    4. username: "lewandowski"
  11. Ticket change [7cf29089c0] (rid 97166) by hobbs on 2001-08-07 07:28:11:

    1. assignee changed to: "andreas_kupries"
  12. Ticket change [44e6ec0a56] (rid 116789) by andreas_kupries on 2001-08-07 07:55:02:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      I see a couple of problems in the attached scripts:
      
      proc serverOpen {channel addr Port} {
          
          fileevent $channel readable "NewThread $channel $addr"
          puts $channel "Server OK"
          flush $channel
      }
      
      Why is 'NewThread' attached to a 'readable event' ?
      A simple [after idle] would be sufficient to move the
      transfer out of the sockey-handler.
      
      But more important is the fact that a thread is started, 
      some event handlers are setup and then the event loop is 
      _not_ entered ! The last command in the script should be a 
      [vwait Stop] or similar and not the [proc]. As is the 
      thread will setup the eventhandlers first and then delete 
      itself, never having the opportunity to fire the events.
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  13. Ticket change [4c0afc995c] (rid 126810) by andreas_kupries on 2001-09-14 04:27:12:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      How did you compile and link 'setuid' ?
      
      When I do it I get a segfault when loading
      the extension into tclsh8.4/cvs.
      
      Also, is 'loading' setuid enough to cause the error ? If 
      not, where do I place the 'setuid' call to cause the 
      problem ?
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  14. Ticket change [bd15f014fc] (rid 101848) by andreas_kupries on 2001-09-14 04:37:39:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      The location of the 'load libsetuid.so' statement
      implies that you try to set the effective user id
      for a single thread, right ?
      
      Note that the relevant system call always affects
      the whole process, i.e. all threads in it. See the
      manpage of 'setuid'.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  15. Ticket change [53c9540456] (rid 93814) by andreas_kupries on 2001-09-14 06:25:51:

    1. closedate changed to: "2001-09-13T23:25:51"
    2. closer changed to: "andreas_kupries"
    3. status changed to: "Closed"