From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 13 05:17:23 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C149F21 for ; Thu, 13 Feb 2014 05:17:23 +0000 (UTC) Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6B9EF1897 for ; Thu, 13 Feb 2014 05:17:23 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id fp1so9580288pdb.24 for ; Wed, 12 Feb 2014 21:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FTlk5tdh4pBqNakEiADhHP0yI9UDcFToJKREmbk5rVw=; b=zkJaBZnmXHX1l8OKuQ7RXRjhL1zzw6XQcRxQMJUk6LfdzkUQzC8BaS2TOPOvIZttES pSMgzfl75gAVNYrqTyl+QEI//k9yPXVy+6tdd7AIaq317tdz6T+seMz57ZYSK5mqhDkL +tyySh+rIPRPOkf3kFD2DczTBT2SlXw4hS9nqpIweA6F4usnNq4aBxbljFxiCmg8q2HW rqQl+iDUME0B+ssVoANBvVaNp6DEzLe0ncg8xbIpuDPCzzma5a2WrxILxvx48b/UO/iI day/CmD78alTQIuo0e3eO1URiaCzTPzZvTEOlqWH+WQC/O7B4EX+bWELE3VcX0ZyZRLq lP6A== X-Received: by 10.68.203.102 with SMTP id kp6mr34365950pbc.14.1392268642410; Wed, 12 Feb 2014 21:17:22 -0800 (PST) Received: from [10.20.30.117] (75-101-82-48.static.sonic.net. [75.101.82.48]) by mx.google.com with ESMTPSA id js7sm2013165pbc.35.2014.02.12.21.17.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 21:17:21 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: Thoughts on Multi-Symlink Concept From: Jordan Hubbard In-Reply-To: Date: Wed, 12 Feb 2014 21:17:19 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Jason Hellenthal X-Mailer: Apple Mail (2.1827) Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 05:17:23 -0000 On Feb 12, 2014, at 9:08 PM, Jordan Hubbard = wrote: > Globbing is done in user land (by the shell) - you wouldn=92t want to = push that down into the kernel, which is either what you=92d have to do = or you=92d need a user land daemon which did round-trips with the kernel = to do the translation, which would also need to make sure to get all of = the process permission stuff right since the user id / gid / $CWD would = all potentially affect the expansion of the =93symlink=94. Actually, just to correct myself, there is a third way, which is that = you could make the shell also do the expansion of the symlink (or = interpose it into libc), but now you=92d just be stacking one weird hack = on top of another weird hack. It=92s still not a good idea for all the = reasons I mentioned, at least not as a =93symlink=94. Maybe some new = type of shell builtin, though I=92m not sure how/where you=92d use it. - Jordan