From owner-freebsd-current Mon Dec 30 15:13:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7BCE37B48B for ; Mon, 30 Dec 2002 15:13:40 -0800 (PST) Received: from dilbert.timing.com (dilbert.timing.com [206.168.13.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EEDF43EC2 for ; Mon, 30 Dec 2002 15:13:40 -0800 (PST) (envelope-from marc@dilbert.timing.com) Received: from dilbert.timing.com (localhost.timing.com [127.0.0.1]) by dilbert.timing.com (8.12.3/8.12.3) with ESMTP id gBUNDdwV089654 for ; Mon, 30 Dec 2002 16:13:39 -0700 (MST) (envelope-from marc@dilbert.timing.com) Received: (from marc@localhost) by dilbert.timing.com (8.12.3/8.12.3/Submit) id gBUNDdVw089653 for freebsd-current@FreeBSD.org; Mon, 30 Dec 2002 16:13:39 -0700 (MST) Date: Mon, 30 Dec 2002 16:13:39 -0700 From: Marc Butler To: freebsd-current@FreeBSD.org Subject: Problem with /dev/stdout in a chroot environment. Message-ID: <20021230161339.A89641@timing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm currently trying to build CURRENT (DEC 29 2002) within a chroot environment under CURRENT (DEC 17 2002). Presently I am stuck on an error which appears to be related to /dev/stdout in a chroot environment (devfs?). Specifically writing to /dev/stdout does not work (specifically: genassym.sh). For example (my default shell is tcsh, chroot directory is "chroot"): bugs.ttyp0% sudo chroot chroot # echo "test" > /dev/stdout # echo "test" > /dev/tty # echo "test" > /dev/fd/1 # As you can see none of these result in test written to the shell. Additionally /bin/sh sounds off if specifically started in place of tcsh: bugs.ttyp0% sudo chroot chroot /bin/sh sh: can't access tty; job control turned off In the chroot environment /dev looks to be broken when compared to the /dev system in the hosting environment: bugs.ttyp0% devnum chroot/dev/fd/1 chroot/dev/fd/1: dev = 4/11 bugs.ttyp0% devnum /dev/fd/1 /dev/fd/1: dev = 255/67108864 (character) rdev = 22/1 I'm not sure whether this is the result something that I have done incorrectly, or if it is a bug. I have made a cursory look at jail, but it appears to be _overkill_ for the task. -- Marc Butler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message