lkml.org 
[lkml]   [1998]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: dynamic pty driver...
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.023 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site