Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2010 06:53:03 +1000
From:      Peter Jeremy <peterjeremy@acm.org>
To:        d@delphij.net
Cc:        "delphij@freebsd.org" <delphij@FreeBSD.ORG>, "freebsd-stable@freebsd.org" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: [Stable 7] CPIO breakage/
Message-ID:  <20100617205302.GA60347@server.vk2pj.dyndns.org>
In-Reply-To: <4C18195A.3020501@delphij.net>
References:  <1276639800.2462.80.camel@localhost.localdomain> <1276646707.2462.82.camel@localhost.localdomain> <4C18195A.3020501@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 2010-Jun-15 17:22:50 -0700, Xin LI <delphij@delphij.net> wrote:
>On 2010/06/15 17:05, Sean Bruno wrote:
>> A little more background.  It looks like symlinks are getting stripped
>> of their '/' which sucks.  Ideas?
...
>> e.g. /home/foo/bar -> /opt/baz/blob
>> 
>> becomes
>> 
>> home/foo/bar -> opt/baz/blob   
>> 
>> Yuck.
>
>This is a security measurement I think.

Can someone please explain how stripping a leading '/' off the
destination of a symlink enhances security?  The destination is
not being written to.

>--absolute-filenames disables this behavior.

This definitely reduces security and would seem to be far more
dangerous than being able to create symlinks to absolute pathnames.

-- 
Peter Jeremy

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkwaiy4ACgkQ/opHv/APuIdJeQCeIQvyufTisOHk5AUXvHmDqIrw
874AnA1tNUaHS6fnyOdHz/vhbZn/NKHR
=gzO3
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100617205302.GA60347>