=20
ee=20
=20
=20
l=20
s=20
=20
So this is the same issue I sent a message to arch@ about some time ago,
that /dev/ptmx already returns a reference to the new pty, already when
you stat(2) it (for example by running `ls -l /dev/ptmx')?
=20
=20
ly=20
l,=20
=20
nd=20
I actually think that this sounds pretty nice. You mean something like
an in-kernel implementation for openpty()?
Another thing that would make the TTY code a little bit cleaner in my
opinion is removing the PRIV_TTY_PRISON check and making something
generic inside devfs. If we have proper garbage collecting on TTY's,
then we can just change make_dev_cred() to bind the new device node to a
certain jail. That way you could even choose to hide nodes in /dev that
don't belong to the jail in question.
--=20
Ed Schouten <ed@fxq.nl>
WWW: http://g-rave.nl/