Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2008 23:21:06 -0700
From:      "Garrett Cooper" <yanefbsd@gmail.com>
To:        "Giorgos Keramidas" <keramida@freebsd.org>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: bin/124409: fsck(8) requires exact entry for mountpoints when executing / bug by design in getfsfile(3) in .../lib/libc/gen/fstab.c
Message-ID:  <7d6fde3d0806212321j97b235axa74bb1378ff83965@mail.gmail.com>
In-Reply-To: <7d6fde3d0806212319q779b1dd9r823b9777a9694185@mail.gmail.com>
References:  <200806220310.m5M3A4KJ007718@freefall.freebsd.org> <7d6fde3d0806212319q779b1dd9r823b9777a9694185@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 21, 2008 at 11:19 PM, Garrett Cooper <yanefbsd@gmail.com> wrote:
>
> There was a reason why I avoided going straight to realpath... didn't
> realpath have security issues and the like, such that it wasn't

Sorry -- didn't finish all of my thought. I meant to say "such that it
wasn't advisable for use in core systems, etc, like mount".

> Linux (it isn't included in glibc) uses a function called
> canonicalize() for resolving paths, which does something similar to
> realpath, but doesn't resolve symlinks, IIRC, and thus avoids the
> security / race condition issue.
>
> Cheers,
> -Garrett

-Garrett



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