Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2008 16:56:37 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Frank Behrens <frank@pinky.sax.de>
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
Message-ID:  <20080527165637.113110t131433i2s@webmail.leidinger.net>
In-Reply-To: <200805261848.m4QImNbB039362@post.frank-behrens.de>
References:  <200805261157.m4QBvnpF025029@repoman.freebsd.org> <200805261848.m4QImNbB039362@post.frank-behrens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Frank Behrens <frank@pinky.sax.de> (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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080527165637.113110t131433i2s>