All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: 2.6-test4 Traditional pty and devfs
@ 2003-09-03  2:52 Albert Cahalan
  2003-09-03  6:35 ` Christoph Hellwig
  0 siblings, 1 reply; 12+ messages in thread
From: Albert Cahalan @ 2003-09-03  2:52 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: hch, akpm

Christoph Hellwig writes:
> On Tue, Sep 02, 2003 at 10:43:40AM -0700, Andrew Morton wrote:

>>> That's the magic use uid/gid of the process calling
>>> devfs_Register flag I killed.  With a big HEADSUP
>>> and explanation on lkml..
>>
>> So what is the impact here?  That libc5 will break if
>> the user is using devfs and old-style pty's?
>
> If he removed the pt_chown logic that is present with a
> stock libc5, yes.  I wouldn't know why someone would do
> that, though.

The problem may be more serious. There are lots of
apps that use the old-style PTYs w/o any libc help.

a. because that's the historic BSD way
b. so the user can choose a specific pty

For example, there's a "remserial" program
that abuses a PTY for giving access to a
serial port over the network. Apps trying to
use the port work pretty well, without any need
for source code changes or new kernel drivers.



^ permalink raw reply	[flat|nested] 12+ messages in thread
* 2.6-test4 Traditional pty and devfs
@ 2003-09-02 10:42 Andrew Lunn
  2003-09-02 14:08 ` Christoph Hellwig
  0 siblings, 1 reply; 12+ messages in thread
From: Andrew Lunn @ 2003-09-02 10:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: andrew.lunn

Hi Folks

http://bugme.osdl.org/show_bug.cgi?id=1045

I found that devfs and traditional pty's don't work properly with
2.6-test4 and a lot of previous versions. Note im talking about
traditional pty's not UNIX98 which need devpts mounted.

The pty slave devices do not appear in devfs. They should be
/dev/pts/s* and symbolic links from /dev/pty* into /dev/pts/s*. But
these are all missing. So programs like ripperx which use a pty to
control cdparanoia don't work.

I've attached two possible patches to the bugzilla bug. The first one
causes the slave devices to be created in devfs at start up. The
second one makes it work more like 2.4 when the slave device is only
created when the master device is opened.

Both patches suffer from a problem. The slave is always only RW
root. 2.4 sets the owner of the slave to that of the process opening
the master. I cannot see a way to make this happen with 2.6-test. 

Im open for suggestions as to the correct way to fix this.

   Thanks
        Andrew

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

end of thread, other threads:[~2003-09-03  6:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-03  2:52 2.6-test4 Traditional pty and devfs Albert Cahalan
2003-09-03  6:35 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2003-09-02 10:42 Andrew Lunn
2003-09-02 14:08 ` Christoph Hellwig
2003-09-02 17:21   ` Andrew Morton
2003-09-02 17:42     ` Christoph Hellwig
2003-09-02 17:43       ` Andrew Morton
2003-09-02 18:02         ` Christoph Hellwig
2003-09-02 18:16           ` Andrew Lunn
2003-09-02 18:29             ` Christoph Hellwig
2003-09-02 18:35               ` Andrew Lunn
2003-09-02 18:08   ` Andrew Lunn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.