Re: dynamic pty driver...

C. Scott Ananian (cananian@lcs.mit.edu)
Sat, 21 Mar 1998 03:06:41 -0500 (EST)


On Fri, 20 Mar 1998 Alexander Kjeldaas <astor@guardian.no> wrote:

> The
> semantics of /dev/ptmx doesn't deal with opening the device as
> non-root but it is basically just making things faster for login and
> others.

This is incorrect.

> Now, what we want is a /dev/ptmx which normal users can open as
> well. This could be accomplished by setting ownership when opening
> /dev/ptmx if the calling process is not root. This would be a simple
> extension of the current semantics. For programs that used /dev/ptmx
> already (not many on linux I know..) you can start running it as
> non-root. No code needs to be changed.

No new code needs to be written. The exact functionality you desire can
be obtained using a recent 2.1.x linux kernel and a recent 2.1 glibc.
When these development version become stable enough to make it into the
standard distributions, uses of this functionality will become more
wide-spread. The new semantics comply with the Unix98 standard, which is
similar to both BSD and Sun-style pty management. Most portable
applications already support this.

Perhaps I should document this better.
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu