Re: VFS(?) weirdness

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Wed, 20 Sep 2006 13:50:12 +0400
On Tue, Sep 19, 2006 at 03:39:14PM +0100, David Malone wrote:
D> > D> I've tried this on a current machine (as of Sept 16th) and don't
D> > D> see the same thing.
D> 
D> > Yep, this box is the only one I observe the bug on. :( I've observed
D> > it last few months, and I update to HEAD weekly. Moreover, the
D> > /home/glebius directory on thix box is NFS exported and mounted on
D> > another box as /home/glebius. On this other box (NFS client) I run th
D> > test successfully from /home/glebius, while on NFS server it fails.
D> 
D> Might be worth running /bin/pwd and ktracing it to see what is
D> going on?

Well, this is what is at the end of ktrace:

   952 pwd      CALL  stat(0x8210800,0xbfbfe9c0)
   952 pwd      NAMI  "../../../.."
   952 pwd      RET   stat -1 errno 13 Permission denied

Oops. Well, going up the directory tree, I've found that the '..'
entry is unaccessible in the /usr and /var directories:

glebius_at_jujik:/var:|>ls -la
ls: ..: Permission denied
total 1120
drwxr-xr-x  25 root    wheel         512 20 сен 17:39 .
drwxrwxr-x   2 root    operator      512 19 сен 12:14 .snap
drwxr-xr-x   2 root    wheel         512 21 авг  2004 account
drwxr-xr-x   4 root    wheel         512 28 авг  2004 at
drwxr-x---   2 root    audit         512 21 мар  2006 audit
<skip>

While the mount point permissions are correct:

glebius_at_jujik:/:|>ls -la 
total 365
drwxr-xr-x  20 root  wheel        512 20 сен 13:37 .
drwxr-xr-x  20 root  wheel        512 20 сен 13:37 ..
<skip>
drwxr-xr-x  19 root  wheel        512 23 ноя  2005 usr
drwxr-xr-x  25 root  wheel        512 20 сен 17:39 var
<skip>

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
Received on Wed Sep 20 2006 - 07:50:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC