public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/pts question
@ 2001-04-18 20:35 elko
  2001-04-18 22:29 ` H. Peter Anvin
  0 siblings, 1 reply; 2+ messages in thread
From: elko @ 2001-04-18 20:35 UTC (permalink / raw)
  To: linux-kernel

hello,

as I understand, /dev/pts was created
to make an end to the overload in /dev/<devices>
and let the kernel put the entries in /dev/pts
when they are used/needed/installed.

but still, when I enable /dev/pts, I have to
keep the /dev/<devices> for backward compatibility
with already installed applications that rely on them.

would it be possible/sane to make like a
/dev/* (some sort of a /dev/B-compatible) besides
/dev/pts, where the kernel `translates' the
/dev/<device> request to /dev/* and then
`translate' that to the correct /dev/pts entry ??

at least, something like that...
-- 
elko


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /dev/pts question
  2001-04-18 20:35 /dev/pts question elko
@ 2001-04-18 22:29 ` H. Peter Anvin
  0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2001-04-18 22:29 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <01041822354404.00617@ElkOS>
By author:    elko <elko@home.nl>
In newsgroup: linux.dev.kernel
> 
> as I understand, /dev/pts was created
> to make an end to the overload in /dev/<devices>
> and let the kernel put the entries in /dev/pts
> when they are used/needed/installed.
> 

You understand wrong.  /dev/pts was constructed because the semantics
of BSD pty's is broken (there are issues with permissions.)

> but still, when I enable /dev/pts, I have to
> keep the /dev/<devices> for backward compatibility
> with already installed applications that rely on them.

You should fix your applications.

> would it be possible/sane to make like a
> /dev/* (some sort of a /dev/B-compatible) besides
> /dev/pts, where the kernel `translates' the
> /dev/<device> request to /dev/* and then
> `translate' that to the correct /dev/pts entry ??

Absolutely not.  BSD and Unix98 ptys have different semantics, and
absolutely, positively, must be kept separate -- or you have a
security hole in your machine.

Fix your old applications.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-18 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-18 20:35 /dev/pts question elko
2001-04-18 22:29 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox