From owner-freebsd-arch@FreeBSD.ORG Fri Aug 22 15:39:08 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 B48A21065678; Fri, 22 Aug 2008 15:39:08 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 362EF8FC17; Fri, 22 Aug 2008 15:39:08 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m7MFdjJC058829; Fri, 22 Aug 2008 10:39:45 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m7MFdjej058828; Fri, 22 Aug 2008 10:39:45 -0500 (CDT) (envelope-from brooks) Date: Fri, 22 Aug 2008 10:39:45 -0500 From: Brooks Davis To: Ivan Voras Message-ID: <20080822153945.GC57443@lor.one-eyed-alien.net> References: <20080822150020.GA57443@lor.one-eyed-alien.net> <9bbcef730808220802pa84b597u457100a23b03a80c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wxDdMuZNg1r63Hyj" Content-Disposition: inline In-Reply-To: <9bbcef730808220802pa84b597u457100a23b03a80c@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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: Fri, 22 Aug 2008 15:39:08 -0000 --wxDdMuZNg1r63Hyj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 22, 2008 at 05:02:31PM +0200, Ivan Voras wrote: > 2008/8/22 Brooks Davis : >=20 > > I have an implementation derived from Andrey's port of the DragonFly > > implementation which will be committed in the next month or two. We > > discussed it in detail at the dev summit and subject to a few more > > changes and cleanup, it's ready to go. It allows significantly more > > flexibility than the NetBSD approach while avoiding many of the pitfalls > > involved in variant symlinks. >=20 > Does it also support special automatic variables like uid, hostname? No it does not. There are two reasons for this. First, it's basically pointless since you can set system wide variables for things like hostname and I have login_conf support to set things like uid or uname variables. Second, consider all the implications of @uid in the context of setuid binaries. This is hard to reason about and easy to get wrong. As a result, I feel a model where variables are set per process and follow fork is much less prone to error. -- Brooks --wxDdMuZNg1r63Hyj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIrt3BXY6L6fI4GtQRAs4hAJ9MQ7S8swL8VxEGpKc5YEF87xaf4QCghK97 QGx4kS4JfZm1hqtOTlNLEYM= =hULY -----END PGP SIGNATURE----- --wxDdMuZNg1r63Hyj--