home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 036 / text0000.txt < prev   
Encoding:
Text File  |  1991-03-07  |  1.6 KB  |  34 lines

  1. Submitted-by: thorinn@rimfaxe.diku.dk (Lars Henrik Mathiesen)
  2.  
  3. rml@hpfcdc.fc.hp.com (Bob Lenk) writes:
  4. >Again, pty master features are not covered by POSIX.  There are some
  5. >tradeoffs between these two approaches.  Supplying the process group ID
  6. >through the pty master means that if the process running controlling the
  7. >master side is no privileged (typically root), it will be unable to
  8. >send signals to processes that have changed user IDs (eg. su).  However,
  9. >the ioctl to send a signal requires appropriate security checks in a
  10. >production implementation.  There are questions as to what these need to
  11. >be; I suggest that the process should be able to send any tty signals
  12. >but no others, since any process/user on the slave slide accepted (at
  13. >least implicitly) the possibility of receiving these when affiliating
  14. >with a (pseudo) terminal.
  15.  
  16. We're discussing an ioctl, usable on a master pty to send terminal
  17. signals to processes in the slave side's process group, right?
  18.  
  19. I'd very much hope that such an ioctl would include checks for the
  20. termio settings of the slave side: A signal should only be allowed if
  21. it would be possible to write a character on the master pty to achieve
  22. the same result. (And then, why not do just that?)
  23.  
  24. Otherwise, a set-uid process that unsets the ISIG flag might be
  25. subverted with unexpected signals by users running it under a pty.
  26. (Personally, I'd block the signals as well, but I'm not everybody.)
  27.  
  28. --
  29. Lars Mathiesen, DIKU, U of Copenhagen, Denmark      [uunet!]mcsun!diku!thorinn
  30. Institute of Datalogy -- we're scientists, not engineers.      thorinn@diku.dk
  31.  
  32. Volume-Number: Volume 22, Number 36
  33.  
  34.