Fwd: [Re: openpty() and jail in RELENG_7]

2007-11-15 Thread Dan Epure
- Forwarded message from Dan Epure <[EMAIL PROTECTED]> - Date: Thu, 15 Nov 2007 19:11:43 +0200 From: Dan Epure <[EMAIL PROTECTED]> To: John Baldwin <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: openpty() and jail in RELENG_7 The /etc/defaults/devfs.rules vers

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-12 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Christian, Christian S.J. Peron wrote: > Please try the attached patch. I have committed this to head > and it somehow slipped through the cracks in terms of an MFC > > (patch /etc/defaults/devfs.rules) Do we need to expose /dev/ptmx as well?

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Vlad GALU
On 11/12/07, Christian S.J. Peron <[EMAIL PROTECTED]> wrote: > On Mon, Nov 12, 2007 at 01:14:14AM +0200, Vlad GALU wrote: > [..] > > > >This one: > > http://lists.freebsd.org/pipermail/freebsd-stable/2007-November/038054.html > >Thanks! > > > > Ah.. ok. At first glance this doesn't look li

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Christian S.J. Peron
On Mon, Nov 12, 2007 at 01:14:14AM +0200, Vlad GALU wrote: [..] > >This one: > http://lists.freebsd.org/pipermail/freebsd-stable/2007-November/038054.html >Thanks! > Ah.. ok. At first glance this doesn't look like a problem. This is actually looks like a side effect of devices which su

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Vlad GALU
On 11/12/07, Christian S.J. Peron <[EMAIL PROTECTED]> wrote: > On Sun, Nov 11, 2007 at 10:17:31PM +0200, Vlad GALU wrote: > > On 11/11/07, Christian S.J. Peron <[EMAIL PROTECTED]> wrote: > > > On Sun, Nov 11, 2007 at 08:11:57PM +0200, Dan Epure wrote: > > > > I just used the patch and it is working

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Christian S.J. Peron
On Sun, Nov 11, 2007 at 10:17:31PM +0200, Vlad GALU wrote: > On 11/11/07, Christian S.J. Peron <[EMAIL PROTECTED]> wrote: > > On Sun, Nov 11, 2007 at 08:11:57PM +0200, Dan Epure wrote: > > > I just used the patch and it is working. > > > > > > > Good to hear. I have submitted the request to get thi

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Vlad GALU
On 11/11/07, Christian S.J. Peron <[EMAIL PROTECTED]> wrote: > On Sun, Nov 11, 2007 at 08:11:57PM +0200, Dan Epure wrote: > > I just used the patch and it is working. > > > > Good to hear. I have submitted the request to get this merged to > RELENG_7. Thanks for the quick response. Unfortunatel

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Christian S.J. Peron
On Sun, Nov 11, 2007 at 08:11:57PM +0200, Dan Epure wrote: > I just used the patch and it is working. > Good to hear. I have submitted the request to get this merged to RELENG_7. Thanks for the quick response. -- Christian S.J. Peron [EMAIL PROTECTED] FreeBSD Committer _

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Dan Epure
> From: Dan Epure <[EMAIL PROTECTED]> > > To: Tom Evans <[EMAIL PROTECTED]> > > Cc: freebsd-stable@freebsd.org > > Subject: Re: openpty() and jail in RELENG_7 > > > > Thank you for your answer. > > > > This is not Xin Li's scenario. > >

Re: [EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-11 Thread Christian S.J. Peron
age from Dan Epure <[EMAIL PROTECTED]> - > > Date: Wed, 7 Nov 2007 19:25:08 +0200 > From: Dan Epure <[EMAIL PROTECTED]> > To: Tom Evans <[EMAIL PROTECTED]> > Cc: freebsd-stable@freebsd.org > Subject: Re: openpty() and jail in RELENG_7 > > Thank y

Re: openpty() and jail in RELENG_7

2007-11-08 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Epure wrote: > Thank you for your answer. > > This is not Xin Li's scenario. That's true, these are different scenarios. I think it is caused by some devfs.rules(5) configuration issue, as if you mount the whole devfs into /dev, you will have op

[EMAIL PROTECTED]: Re: openpty() and jail in RELENG_7]

2007-11-08 Thread Dan Epure
I can provide more info on request. - Forwarded message from Dan Epure <[EMAIL PROTECTED]> - Date: Wed, 7 Nov 2007 19:25:08 +0200 From: Dan Epure <[EMAIL PROTECTED]> To: Tom Evans <[EMAIL PROTECTED]> Cc: freebsd-stable@freebsd.org Subject: Re: openpty() and jail in R

Re: openpty() and jail in RELENG_7

2007-11-07 Thread Dan Epure
Thank you for your answer. This is not Xin Li's scenario. Description: the host of the jail - H (192.168.168.2/24) the jail running on H - J (192.168.168.254/32) the testing system - T (192.168.168.253/24) 1. I start the ssh daemon on H: === cut here === H# /usr/sbin/sshd -d debug1: sshd versio

Re: openpty() and jail in RELENG_7

2007-11-07 Thread Vlad GALU
On 11/7/07, Tom Evans <[EMAIL PROTECTED]> wrote: > On Tue, 2007-11-06 at 22:19 +0200, Dan Epure wrote: > > Hi All, > > > > > > I'm using on the host system (7.0-BETA2): > > #sysctl kern.pts.enable > > kern.pts.enable: 1 > > I have no problem at all. > > > > The jail is also 7.0-BETA2 > > > > The pr

Re: openpty() and jail in RELENG_7

2007-11-07 Thread Tom Evans
On Wed, 2007-11-07 at 16:21 +0200, Vlad GALU wrote: > On 11/7/07, Tom Evans <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-11-06 at 22:19 +0200, Dan Epure wrote: > > > Hi All, > > > I think the problem is related to restrictions imposed by the jail. > > > > > > Please advise. > > > > > > Gepu > > > >

Re: openpty() and jail in RELENG_7

2007-11-07 Thread Tom Evans
On Tue, 2007-11-06 at 22:19 +0200, Dan Epure wrote: > Hi All, > > > I'm using on the host system (7.0-BETA2): > #sysctl kern.pts.enable > kern.pts.enable: 1 > I have no problem at all. > > The jail is also 7.0-BETA2 > > The problem is inside the jail openpty() can not allocate the pty: > === cu

openpty() and jail in RELENG_7

2007-11-06 Thread Dan Epure
Hi All, I'm using on the host system (7.0-BETA2): #sysctl kern.pts.enable kern.pts.enable: 1 I have no problem at all. The jail is also 7.0-BETA2 The problem is inside the jail openpty() can not allocate the pty: === cut here === debug1: monitor_child_preauth: test2 has been authenticated by pr