Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2004 23:35:42 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Kris Kennaway <kris@obsecurity.org>, kientzle@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   Re: Spurious EACCES errors from apache
Message-ID:  <20040814063541.GA43063@xor.obsecurity.org>
In-Reply-To: <20040813235434.GA75875@xor.obsecurity.org>
References:  <20040813235434.GA75875@xor.obsecurity.org>

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

[-- Attachment #1 --]
On Fri, Aug 13, 2004 at 04:54:34PM -0700, Kris Kennaway wrote:
> Since a recent world+kernel update, apache is frequently reporting
> errors like:
> 
> [Fri Aug 13 23:29:19 2004] [error] [client 216.136.204.42] (13)Permission denied: access to /errorlogs/i386-4-packages-latest/All/pkgconfig-0.15.0_1.tgz failed because search permissions are missing on a component of the path
> 
> There is nothing wrong with the permissions of that path, and
> refetching the same file will usually succeed.
> 
> Did someone break something in the kernel, perhaps some recent VM
> changes?

With help from rwatson we tracked it down to bsdtar, which seems to be
setting and resetting permissions on every path component when
extracting a tarball.  This is bad when some of those directories
already exist, because other processes trying to access files in the
directory hierarchy may lose the race and fail.

Kris

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

iD8DBQFBHbK9Wry0BWjoQKURAiUqAJ4pknj4hpj4zQ+Tz8rQX0ch5TBn1gCglk7H
c4mN4cFlfLGYDlz5c1a/BW4=
=ws7g
-----END PGP SIGNATURE-----

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