From owner-freebsd-isp Wed Dec 12 22:40:38 2001 Delivered-To: freebsd-isp@freebsd.org Received: from backup.dagupan.com (www.psysc.org.ph [206.101.69.5]) by hub.freebsd.org (Postfix) with ESMTP id F3C5C37B416 for ; Wed, 12 Dec 2001 22:40:34 -0800 (PST) Received: by apmail.dagupan.com with Internet Mail Service (5.5.2653.19) id ; Thu, 13 Dec 2001 14:40:38 +0800 Message-ID: <10F29E27A956D511B0940050DA8D86A9340D46@apmail.dagupan.com> From: francisv@dagupan.com To: debolaz@debolaz.com Cc: freebsd-isp@freebsd.org Subject: RE: Linux compatibility inside jail system Date: Thu, 13 Dec 2001 14:40:38 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'll try it out later. Thanks Anders! -----Original Message----- From: Anders Nor Berle [mailto:debolaz@debolaz.com] Sent: Thursday, December 13, 2001 11:52 AM To: francisv@dagupan.com Cc: freebsd-isp@freebsd.org Subject: RE: Linux compatibility inside jail system Yes, when you say that, I recall a little hack is neccesary. Basically, the port wants to do 2 things which cannot be done inside a jail. (1) Set the sysctl "kern.fallback_elf_brand" to 3 (LINUX_ELF) (2) Make a a /dev/null device inside the linux chrooted environment. The first is obvious to accomplish, simply set it outside the jail. Sysctls are global. So to do this, you'd simply write: sysctl -w kern.fallback_elf_brand=3 Then, you comment out this code in the linux_base-7 Makefile, which I believe is located at line 136 and 150. The second is slightly more tricky, but shouldnt be any problem. make a directory called /compat/linux/dev inside the jail, chdir to it and write: mknod null c 2 2 Then, comment out this too in your Makefile (Line 130). Then, try installing it again and tell me how it works. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message