From owner-freebsd-arch@FreeBSD.ORG Fri Aug 22 14:59:44 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 117701065672; Fri, 22 Aug 2008 14:59:44 +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 88E618FC34; Fri, 22 Aug 2008 14:59:43 +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 m7MF0LlH058447; Fri, 22 Aug 2008 10:00:21 -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 m7MF0LSk058446; Fri, 22 Aug 2008 10:00:21 -0500 (CDT) (envelope-from brooks) Date: Fri, 22 Aug 2008 10:00:21 -0500 From: Brooks Davis To: Ivan Voras Message-ID: <20080822150020.GA57443@lor.one-eyed-alien.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: 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 14:59:44 -0000 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 22, 2008 at 01:54:29AM +0200, Ivan Voras wrote: > I was reading about new things in NetBSD, and one thing caught my=20 > attention: per-user /tmp. See=20 > http://www.feyrer.de/NetBSD/bx/blosxom.cgi/nb_20080714_0251.html for=20 > example. >=20 > Google says that a discussion about magic symlinks happens every now and= =20 > then in FreeBSD but nothing really gets done. I found this implementation= =20 > which looks like it's for 7.0: >=20 > http://butcher.heavennet.ru/patches/kernel/magiclinks/ >=20 > As far as I understand the VFS (which isn't much...) this looks like an= =20 > trivial patch, and it's compatible with NetBSD. Since I'm interested in= =20 > this (specifically for the per-user /tmp and maybe similar gadgetry), I'd= =20 > like to nurse this patch into the tree, if there are no objections (of=20 > course, I'll bug anyone I can find who knows VFS to review it :) ). 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. -- Brooks --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIrtSEXY6L6fI4GtQRAhW/AKC9QsRNlTI7GOYRiNk1qj6dcfd/hwCffNK2 cxXon+HubEaMQQBnDu/fPxc= =Vnoi -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--