NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/51595: inconsistent behaviour in statvfs
The following reply was made to PR kern/51595; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/51595: inconsistent behaviour in statvfs
Date: Thu, 3 Nov 2016 15:17:26 +0100
On Thu, Nov 03, 2016 at 02:10:00PM +0000, Christos Zoulas wrote:
> Please explain what happens. I.e. what it returns in the error case
> and what it should return.
IIUC:
kern/vfs_getcwd.c in getcwd_scandir calls VOP_LOOKUP for ".." to strip
off the chroot path from paths returned to programs inside the chroot.
This fails with EACCES, but should succeed.
The reason is that in some cases, this is called with the pbulk user
credentials and fails, because pbulk cannot enter /archive/sandboxes;
in some cases it was previously called in another way with root
credentials, and the call originating from the pbulk user uses the
cached entry and everything works fine.
Thomas
Home |
Main Index |
Thread Index |
Old Index