Re: Attention 7.x and 8.x ptmx/pts users (read if you set kern.pts.enable=1)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ed Schouten
Date: Tuesday, December 4, 2007 - 3:23 am

* Robert Watson <rwatson@FreeBSD.org> wrote:
=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/
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Attention 7.x and 8.x ptmx/pts users (read if you set ..., Ed Schouten, (Tue Dec 4, 3:23 am)