Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 23:20:01 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Jakub Lach <jakub_lach@mailplus.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: FYI Lighttpd 1.4.23 /kernel (trailing '/' on regular file symlink) vulnerability
Message-ID:  <86my8z8su6.fsf@ds4.des.no>
In-Reply-To: <86prdvipwe.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Tue, 26 May 2009 22:13:21 %2B0200")
References:  <23727599.post@talk.nabble.com> <86prdvipwe.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> Like bde@ pointed out, the patch is incorrect.  It moves the test for
> v_type !=3D VDIR up to a point where, in the case of a symlink, v_type is
> always (by definition) VLNK.

Hmm, actually, symlinks are resolved in namei(), not lookup().  This is
not going to be pretty.  I'll be back later...

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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