>>>>> "Niels" == Niels =?ISO-8859-1?Q?M=F6ller?= <[EMAIL PROTECTED]> writes:

Niels> And to finally make the tty the cntrolling tty of the child process,
Niels> we have to open it again, and close it immediately. 

Eeeeewwwww... there is a POSIX interface for this sort of thing. It's
_much_ nicer...

Niels> Are there any inherent problems with doing things this way? (One
Niels> reason to do it like this is that if pty allocation failes, for any
Niels> reason, lshd should be able to tell the client about it in the reply
Niels> to the pty-request message).

Niels> Do you have any description about the security issues in pty
Niels> allocation? I have the Solaris man-pages, and the UNIX98 docs (which
Niels> are very similar, as far as I have read), and I haven't found any
Niels> comprehensive description on what must be done to avoid things like
Niels> local users stealing eachother's ptys.

I'm not really all that familiar with the pty code - I just copy the
stuff out of the examples :)

-- 
Carson Gaspar -- [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
http://www.cs.columbia.edu/~carson/home.html
Queen Trapped in a Butch Body

Reply via email to