From owner-freebsd-arch@FreeBSD.ORG Sat Aug 23 12:25:21 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1E7D106567B for ; Sat, 23 Aug 2008 12:25:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 2B1348FC12 for ; Sat, 23 Aug 2008 12:25:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1KWsBD-000G7E-Dn; Sat, 23 Aug 2008 15:25:19 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7NCPFmG036290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Aug 2008 15:25:16 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7NCPFdr024747; Sat, 23 Aug 2008 15:25:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m7NCPFwk024746; Sat, 23 Aug 2008 15:25:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 23 Aug 2008 15:25:15 +0300 From: Kostik Belousov To: Ivan Voras Message-ID: <20080823122515.GS1803@deviant.kiev.zoral.com.ua> References: <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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SuSGaIqs99hP22V3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1KWsBD-000G7E-Dn dcd74ceafa4481d8b075874e01050217 X-Terabit: YES Cc: freebsd-arch@freebsd.org Subject: Re: Magic symlinks redux X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 12:25:21 -0000 --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--