From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 12:07:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A8A8106579E for ; Mon, 26 Jan 2009 12:07:49 +0000 (UTC) (envelope-from peter@vereshagin.org) Received: from mx1.skyriver.ru (ns1.skyriver.ru [89.108.82.27]) by mx1.freebsd.org (Postfix) with ESMTP id B7F788FC2F for ; Mon, 26 Jan 2009 12:07:48 +0000 (UTC) (envelope-from peter@vereshagin.org) Received: from localhost (zz217-113-115-181.tlt.ru [217.113.115.181]) by mx1.skyriver.ru (Postfix) with ESMTP id F22005A8B; Mon, 26 Jan 2009 14:57:57 +0300 (MSK) Date: Mon, 26 Jan 2009 16:07:46 +0400 From: Peter Vereshagin To: Mel Message-ID: <20090126120746.GA15139@screwed.box> References: <20090125112517.GA33731@screwed.box> <200901251708.14416.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200901251708.14416.fbsd.questions@rachie.is-a-geek.net> Organization: ' X-Face: 8T>{1owI$Byj]]a; ^G]kRf*dkq>E-3':F>4ODP[#X4s"dr?^b&2G@'3lukno]A1wvJ_L (~u 6>I2ra/<,j1%@C[LN=>p#_}RIV+#:KTszp-X$bQOj,K Cc: Peter Vereshagin , freebsd-questions@freebsd.org Subject: Re: jail devfs openpty X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 12:08:02 -0000 You'll never silence the voice of the voiceless, Mel! Sorry the script(1) did work, but stopped since the portupgrade tried it: === # portupgrade -varRp ---> Session started at: Mon, 26 Jan 2009 15:58:54 +0400 [Updating the pkgdb in /var/db/pkg ... - 190 packages found (-0 +1) . done] ** Port marked as IGNORE: mail/cclient: is forbidden: multiple vulnerabilities http://www.vuxml.org/freebsd/a6713190-dfea-11dd-a765-0030843d3802.html http://www.vuxml.org/freebsd/69a20ce4-dfee-11dd-a765-0030843d3802.html ---> Upgrade of mail/courier-imap started at: Mon, 26 Jan 2009 15:59:40 +0400 ---> Upgrading 'courier-imap-4.3.1,2' to 'courier-imap-4.4.1,2' (mail/courier-imap) ---> Build of mail/courier-imap started at: Mon, 26 Jan 2009 15:59:40 +0400 ---> Building '/usr/ports/mail/courier-imap' script: openpty: Permission denied === Same as with script(1) by hand now. I do all this in chroot. No difference if under gnu screen or in ttyv4. 2009/01/25 17:08:14 -0900 Mel => To freebsd-questions@freebsd.org : M> On Sunday 25 January 2009 02:25:17 Peter Vereshagin wrote: M> > Hello, M> > M> > I am doing the portupgrade inside my jail. M> > I see that script(1) have no permission on openpty. M> > I deleted all the devfs rules on tha jail's /dev both by hand and by M> > deleting the ruleset string in master's rc.conf. So i stopped jail and M> > mounted devfs by hand. Started jail. It appears to work, the portupgrade. I M> > suppose that if mounted with /etc/rc.d/jail the devfs has some tweak that M> > makes it different from mounted by hand. M> M> Are you sure that's the problem? M> When going inside a jail with jexec(8) there is no /dev/tty. You have to login M> using ssh to get fully functional tty's. M> M> -- M> Mel M> M> Problem with today's modular software: they start with the modules M> and never get to the software part. 73! Peter -- http://vereshagin.org