Date: Sat, 23 Aug 2008 15:25:15 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-arch@freebsd.org Subject: Re: Magic symlinks redux Message-ID: <20080823122515.GS1803@deviant.kiev.zoral.com.ua> In-Reply-To: <g8ohbu$a23$1@ger.gmane.org> References: <g8kv7v$sp2$1@ger.gmane.org> <20080822150020.GA57443@lor.one-eyed-alien.net> <9bbcef730808220802pa84b597u457100a23b03a80c@mail.gmail.com> <20080822153945.GC57443@lor.one-eyed-alien.net> <9bbcef730808220853q22666b44n5ca2b7add991191f@mail.gmail.com> <20080822161314.GE57443@lor.one-eyed-alien.net> <p0624080ec4d51f26d476@[128.113.24.47]> <g8ohbu$a23$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--SuSGaIqs99hP22V3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 23, 2008 at 10:22:19AM +0200, Ivan Voras wrote: > Garance A Drosehn wrote: >=20 > >I like the idea of having some of these mostly-static values, > >although (as you note), we should to think about how these might > >be effected within jails. I have jails (really chroot areas) > >which have different @osreleases than the running kernel, for > >instance. >=20 > This last case would be problematic since symlinks are resolved in=20 > kernel and the kernel can't really see the different userland releases.= =20 > 64-bit call vs 32-bit is ok. Not exactly true. There is p_osrel member of struct proc, that may be interpreted as osrelease where binary where intended to run. At least, it reflects the crt1.o origin. I am not sure whether such dynamic data naturally maps into varsyms concept. At least, some fallback shall be provided for "other" values of osrel. The fact that Solaris and Linux do not provide variant symlinks may be explained by keyword support in their rtld. --SuSGaIqs99hP22V3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiwAasACgkQC3+MBN1Mb4hkDwCgz9vdErzxRLhafOP+gt8Oo1a7 exQAoKThjlAJkXBLw5N2ZbrLnJVRrcQo =jgX9 -----END PGP SIGNATURE----- --SuSGaIqs99hP22V3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080823122515.GS1803>