From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 22 06:21:08 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C4DC1065676 for ; Sun, 22 Jun 2008 06:21:08 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 297648FC18 for ; Sun, 22 Jun 2008 06:21:07 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1074424fgb.35 for ; Sat, 21 Jun 2008 23:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ZY4lh3Uec8G0gWUHiAdvEnyX0MxrQGBSd80dPhtSS6w=; b=Id/0eCgg6cpZVS0xshbOdkP/SI9eEUo1273oGInybQCsme1xOnh13vfhjrA58Pi7b4 FKmzJYRxpITVi0BPjOg8XDuyACEiB0osZs+uHJwcRLlDRwRvax5X2KAjD6PoV1DDf0Qm rOh3EBHlWp9yPwhiV5iOBNGE+HbXYA5pLw4E4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=me00cCnB5dloC6Kv8ZyGIaTxZI3qHD/M3GrRyLwklghrQJDF+izMZxwFJ0o6ver+DI lBDlrYeaAtsiMy32XG/mzkyCmN+4uIsLo22bovvuac26aZXiC5IrKimI1fgxO9CGN2Y6 EhdjRNSrk3l9jL3NyDDWA48hw/GkSDIrZz6NM= Received: by 10.86.98.14 with SMTP id v14mr6510391fgb.74.1214115666801; Sat, 21 Jun 2008 23:21:06 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Sat, 21 Jun 2008 23:21:06 -0700 (PDT) Message-ID: <7d6fde3d0806212321j97b235axa74bb1378ff83965@mail.gmail.com> Date: Sat, 21 Jun 2008 23:21:06 -0700 From: "Garrett Cooper" To: "Giorgos Keramidas" In-Reply-To: <7d6fde3d0806212319q779b1dd9r823b9777a9694185@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200806220310.m5M3A4KJ007718@freefall.freebsd.org> <7d6fde3d0806212319q779b1dd9r823b9777a9694185@mail.gmail.com> 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 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 06:21:08 -0000 On Sat, Jun 21, 2008 at 11:19 PM, Garrett Cooper 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