From owner-freebsd-ports@FreeBSD.ORG Sat Dec 3 14:24:13 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A6401065670 for ; Sat, 3 Dec 2011 14:24:13 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 58A518FC0A for ; Sat, 3 Dec 2011 14:24:13 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC41D1F.dip.t-dialin.net [79.196.29.31]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 0BAF284400D; Sat, 3 Dec 2011 15:23:57 +0100 (CET) Received: from unknown (IO.Leidinger.net [192.168.1.12]) by outgoing.leidinger.net (Postfix) with ESMTP id 3D25D56DF; Sat, 3 Dec 2011 15:23:54 +0100 (CET) Date: Sat, 3 Dec 2011 15:23:54 +0100 From: Alexander Leidinger To: "Thomas Mueller" Message-ID: <20111203152354.000043af@unknown> References: X-Mailer: Claws Mail 3.7.10cvs7 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 0BAF284400D.A3AF8 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1, required 6, autolearn=disabled, ALL_TRUSTED -1.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1323527039.7577@YzelBVMPmQMpNl3hvhpifw X-EBL-Spam-Status: No Cc: dnebdal@gmail.com, lars.engels@0x20.net, freebsd-ports@freebsd.org Subject: Re: Linux compatibility with more than one Linux installed? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 14:24:13 -0000 On Thu, 1 Dec 2011 11:06:19 +0000 (GMT) "Thomas Mueller" wrote: > > The linux-base port is supposed to provide good integration into > > FreeBSD. Ideally the integration is seamless. > > > The linux-dist ports provide a complete linux environment. You > > chroot into it and you have a complete linux system. You can > > compile linux binaries inside the +linux-dist. You can not do this > > with the linux-base. > So I guess that's the fundamental difference between linux-base > installed to /compat/linux, and linux-dist? > > So when I build my Linux installation, then I suppose I can mount > that partition and chroot into it? Yes, you just have to mount some FS into the linux-env (devfs, linprocfs, linsysfs, just like with the linux-base). This assumes your linux env does not use some linux syscalls which the linuxulator part in the FreeBSD kernel does not understand. It also assumes you have a similar setup for important things like DNS servers and such. > Even as nonroot? Even run X Window applications? If you have the same UIDs/GIDs in the linux env (for users), it should work. Even with X (you can do a hardlink of the X socket in the FS into the linux env, or you accept a little bit more overhead and go via TCP -> DISPLAY=hostname:0.0). > I think on some platforms, chroot is root-only, but running > > ls -l /usr/sbin/chroot in FreeBSD 9.0-RC2 > > -r-xr-xr-x 1 root wheel 7736 Nov 22 11:08 /usr/sbin/chroot Chroot should only depend on FS access rights. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137