From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 22 03:01:59 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 72F4B16A420 for ; Wed, 22 Feb 2006 03:01:59 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE29743D4C for ; Wed, 22 Feb 2006 03:01:58 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: by zproxy.gmail.com with SMTP id z3so1314821nzf for ; Tue, 21 Feb 2006 19:01:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bOsSqTWsJSzXPCFWo4LkYDD8exErSMwOEPpohdeJo2tibmtNcGAfyqEDmU328kq85gLG1L59BPtWadHML65UOQehkF7iYDilKMbkTv3CxXAE5YF7/RaSMm276948ge0O8d3NBIhTfsXs2nRZPpJl7UwOMioXI5nuG/+a/rGpeNw= Received: by 10.36.222.27 with SMTP id u27mr2520355nzg; Tue, 21 Feb 2006 19:01:57 -0800 (PST) Received: by 10.36.68.1 with HTTP; Tue, 21 Feb 2006 19:01:57 -0800 (PST) Message-ID: <28edec3c0602211901j63066e01te585c12a42057d1e@mail.gmail.com> Date: Wed, 22 Feb 2006 11:01:57 +0800 From: "Mars G. Miro" To: "Kris Kennaway" In-Reply-To: <20060222015924.GA74781@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <28edec3c0602211753p7290e85q3fb23d799c0cf0fc@mail.gmail.com> <20060222015924.GA74781@xor.obsecurity.org> Cc: freebsd-emulation@freebsd.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 03:01:59 -0000 On 2/22/06, Kris Kennaway wrote: > 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= . > > > > 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) > > > > > Not to mention that the umount isn't always reliable for some reason: > > > the linux_base-8 package build often fails with this: > > > > > =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 - > Operation not > > > supported > > > > I usually have, in /etc/sysctl.conf: > > ... > > > > # for the Jails > > security.jail.allow_raw_sockets=3D1 > > security.jail.sysvipc_allowed=3D1 > > security.jail.chflags_allowed=3D1 > > ... > > > > 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 Well mounting/unmounting stuff inside the jail is a pain. I now recall I had to mount linprocfs from the host to the jail, thus I was able to build them. Hrm, perhaps its time for jail__linprocfs_enable (as with devfs inside a jail) ... Also some of the linux ports checks either fstab or mount for linprocfs, I had to at least set security.jail.enforce_statfs=3D1. > require this so I have to have it present always. > > Kris > > cheers mars