From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 22 01:59:26 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3618116A420 for ; Wed, 22 Feb 2006 01:59:26 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3DC843D48 for ; Wed, 22 Feb 2006 01:59:25 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id BDFD71A3C2C; Tue, 21 Feb 2006 17:59:25 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1F6E2515AE; Tue, 21 Feb 2006 20:59:25 -0500 (EST) Date: Tue, 21 Feb 2006 20:59:25 -0500 From: Kris Kennaway To: "Mars G. Miro" Message-ID: <20060222015924.GA74781@xor.obsecurity.org> References: <28edec3c0602211753p7290e85q3fb23d799c0cf0fc@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <28edec3c0602211753p7290e85q3fb23d799c0cf0fc@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org, kris@obsecurity.org Subject: Re: linprocfs and linux_base port upgrade X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 01:59:26 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 22, 2006 at 09:53:36AM +0800, Mars G. Miro wrote: > >> > >> Actually, this unmount ... remount situation is pretty evil. For > >> example, it prevents users from building linux_base in a jail. In > >> fact I'd like to switch to building packages in jails instead of > >> chroots on the package cluster, but this is the major reason I can't. >=20 > I have been able to build linux_base in a jail, but I had to turn on a > few sysctl jail knobs on the main host (see more below) >=20 > > Not to mention that the umount isn't always reliable for some reason: > > the linux_base-8 package build often fails with this: >=20 > > =3D=3D=3D> Checking if emulators/linux_base-8 already installed > > Un-mounting linprocfs... > > kern.fallback_elf_brand: -1 -> 3 > > redhat-release-8.0-8.noarch.rpm > > glibc-common-2.3.2-4.80.8.i386.rpm > > glibc-2.3.2-4.80.8.i386.rpm > > setup-2.5.20-1.noarch.rpm > > filesystem-2.1.6-5.noarch.rpm > > unpacking of archive failed on file /proc: cpio: chown failed - Operati= on not > > supported >=20 > I usually have, in /etc/sysctl.conf: > ... >=20 > # for the Jails > security.jail.allow_raw_sockets=3D1 > security.jail.sysvipc_allowed=3D1 > security.jail.chflags_allowed=3D1 > ... >=20 > I think that last error you got has something todo w/ enabling the > chflags sysctl jail. No, it's because it tried and failed to umount linprocfs. Presumably you didnt have linprocfs mounted in your jail, but some packages require this so I have to have it present always. Kris --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD+8V8Wry0BWjoQKURAvzzAJ4sP14zZp8wVi7QyygxCgSN0hIo3gCdFRJp lb1/WaQsvhTmlU81gT8U1EY= =GcJ/ -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--