Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2010 21:55:23 -0500
From:      Steve Bertrand <steve@ibctech.ca>
To:        Xin LI <delphij@gmail.com>
Cc:        FreeBSD Stable <FreeBSD-Stable@freebsd.org>
Subject:   Re: I broke my SSH to jails after 7.2-8.0 src upgrade
Message-ID:  <4B99AD1B.3040409@ibctech.ca>
In-Reply-To: <a78074951003111849m7f9aa56fkd4ec9bbafcd395ee@mail.gmail.com>
References:  <4B99AAD3.9060606@ibctech.ca> <a78074951003111849m7f9aa56fkd4ec9bbafcd395ee@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2010.03.11 21:49, Xin LI wrote:
> Sounds like you have something wrong with devfs.rules in jail section?

Did I miss or fsck something up by not reading UPDATING properly?

Here is what I have on the host OS:

%cat /etc/defaults/devfs.rules | grep -v "^#"

[devfsrules_hide_all=1]
add hide

[devfsrules_unhide_basic=2]
add path null unhide
add path zero unhide
add path crypto unhide
add path random unhide
add path urandom unhide

[devfsrules_unhide_login=3]
add path 'ptyp*' unhide
add path 'ptyq*' unhide
add path 'ptyr*' unhide
add path 'ptys*' unhide
add path 'ptyP*' unhide
add path 'ptyQ*' unhide
add path 'ptyR*' unhide
add path 'ptyS*' unhide
add path 'ttyp*' unhide
add path 'ttyq*' unhide
add path 'ttyr*' unhide
add path 'ttys*' unhide
add path 'ttyP*' unhide
add path 'ttyQ*' unhide
add path 'ttyR*' unhide
add path 'ttyS*' unhide
add path 'pts/*' unhide
add path 'pty/*' unhide
add path fd unhide
add path 'fd/*' unhide
add path stdin unhide
add path stdout unhide
add path stderr unhide

[devfsrules_jail=4]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login

...and on a jail OS:

%cat /usr/jails/devel/etc/defaults/devfs.rules | grep -v "^#"

[devfsrules_hide_all=1]
add hide

[devfsrules_unhide_basic=2]
add path null unhide
add path zero unhide
add path crypto unhide
add path random unhide
add path urandom unhide

[devfsrules_unhide_login=3]
add path 'ptyp*' unhide
add path 'ptyq*' unhide
add path 'ptyr*' unhide
add path 'ptys*' unhide
add path 'ptyP*' unhide
add path 'ptyQ*' unhide
add path 'ptyR*' unhide
add path 'ptyS*' unhide
add path 'ttyp*' unhide
add path 'ttyq*' unhide
add path 'ttyr*' unhide
add path 'ttys*' unhide
add path 'ttyP*' unhide
add path 'ttyQ*' unhide
add path 'ttyR*' unhide
add path 'ttyS*' unhide
add path 'pts/*' unhide
add path 'pty/*' unhide
add path fd unhide
add path 'fd/*' unhide
add path stdin unhide
add path stdout unhide
add path stderr unhide
add path pts unhide

[devfsrules_jail=4]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login

Thanks for such a quick response LI,

Steve




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B99AD1B.3040409>