1 |
> From: Alan McKinnon [mailto:alan.mckinnon@×××××.com] |
2 |
> Sent: Sunday, January 27, 2013 1:49 PM |
3 |
> To: gentoo-user@l.g.o |
4 |
> Subject: Re: [gentoo-user] openpty() failing with UNIX98 ptys |
5 |
> |
6 |
> On Sat, 26 Jan 2013 23:46:22 -0500 |
7 |
> "Mike Edenfield" <kutulu@××××××.org> wrote: |
8 |
> |
9 |
> > I have the latest udev installed, and udev-mount is running on |
10 |
> boot. |
11 |
> > Both /dev and /dev/pts are mounted, and /dev/ptmx exists and is |
12 |
> > world-readable: |
13 |
> > |
14 |
> > basement package.use # mount | grep /dev |
15 |
> > /dev/root on / type ext3 |
16 |
> > (rw,seclabel,noatime,errors=continue,barrier=1,data=writeback) |
17 |
> > devpts on /dev/pts type devpts |
18 |
> > (rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) |
19 |
> > shm on /dev/shm type tmpfs |
20 |
> (rw,seclabel,nosuid,nodev,noexec,relatime) |
21 |
> > udev on /dev type devtmpfs |
22 |
> > (rw,seclabel,nosuid,relatime,size=10240k,nr_inodes=248584,mode=755) |
23 |
> > |
24 |
> > basement package.use # ls -alF /dev/ptmx /dev/pts |
25 |
> > crw-rw-rw-. 1 root tty 5, 2 Jan 26 13:18 /dev/ptmx |
26 |
> > |
27 |
> > /dev/pts: |
28 |
> > total 0 |
29 |
> > drwxr-xr-x. 2 root root 40 Jan 26 13:18 ./ |
30 |
> > drwxr-xr-x. 10 root root 13300 Jan 26 13:18 ../ |
31 |
> > |
32 |
> > When I trace sshd's attempt to open a new pty, I see it doing this: |
33 |
> > |
34 |
> > * open /dev/ptmx |
35 |
> > * stat /dev/pts |
36 |
> > * stat /dev |
37 |
> > * try (and fail) to open /dev/ptyp0 |
38 |
> > |
39 |
> > Since I know that last bit is openssh trying to open an old-style |
40 |
> BSD |
41 |
> > pty, I can only assume that something is going wrong trying to |
42 |
> > allocate the pty the correct way. |
43 |
> > |
44 |
> > For the time being I've added BSD pty support into my kernel and |
45 |
> > everything seems to be working now, but I'm at a loss as to what I |
46 |
> > did to break things in the first place. |
47 |
> |
48 |
> I had something similar (details are different though): |
49 |
|
50 |
> In my case it's kernel 3.7 - no version of gentoo-sources-3.7-* |
51 |
> worked |
52 |
> and 3.6.11 works fine. |
53 |
> |
54 |
> What kernel are you on? |
55 |
> Have you tested this on 3.6? |
56 |
|
57 |
I first notice the problem on 3.4.2, upgraded to 3.6.4 and the problem |
58 |
persisted. I have not upgraded to 3.7 to see if it's still a problem. |
59 |
|
60 |
--Mike |