From owner-cvs-all@FreeBSD.ORG Tue May 27 14:56:46 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7D461065680; Tue, 27 May 2008 14:56:46 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 7D7E88FC15; Tue, 27 May 2008 14:56:46 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A54B63.dip.t-dialin.net [84.165.75.99]) by redbull.bpaserver.net (Postfix) with ESMTP id 7F4F22E0F3; Tue, 27 May 2008 16:56:41 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5A7CC114D75; Tue, 27 May 2008 16:56:38 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m4REub96053663; Tue, 27 May 2008 16:56:37 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 27 May 2008 16:56:37 +0200 Message-ID: <20080527165637.113110t131433i2s@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 27 May 2008 16:56:37 +0200 From: Alexander Leidinger To: Frank Behrens References: <200805261157.m4QBvnpF025029@repoman.freebsd.org> <200805261848.m4QImNbB039362@post.frank-behrens.de> In-Reply-To: <200805261848.m4QImNbB039362@post.frank-behrens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.223, required 6, BAYES_00 -15.00, J_CHICKENPOX_21 0.60, RDNS_DYNAMIC 0.10, TW_ZF 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2008 14:56:46 -0000 Quoting Frank Behrens (from Mon, 26 May 2008 =20 20:48:23 +0200): > The rc.conf jail framework also requires unique hostnames for jails, =20 > because the jail-ids are > write to /var/run. On a related note: JIDs are not known in advance, so doing some rc.d =20 stuff which associates a specific X with a jail is not easy. So for =20 example the zfs feature to assign a zfs filesystem to a jail is =20 practiaclly useless at the moment for stuff which shall be available =20 after a reboot without admin intervention (it is not guaranteed that =20 the jails get the same JID again on reboot). In http://www.leidinger.net/FreeBSD/current-patches/jail.diff I have a =20 patch which also uses the hostname of a jail to allow access to =20 /dev/io in the jail (if the admin of the host made it visible in the =20 jail). If ZFS would use the hostname, it would make it more useful =20 (but maybe we would need some magic in the jail code to notify ZFS =20 about a new jail, I haven't checked how ZFS is working in this regard). So basically we need some unique value which is handed out by the =20 admin and doesn't change after a reboot. For me the hostname is a good =20 approximation for this (my hostnames are unique, and I have full =20 control over them). Bye, Alexander. --=20 ANDROPHOBIA: =09Fear of men. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137