On Sat, 8 Sep 2007, Antti Harri wrote:
> Hello,
>
> First just plain directory with mode=700:
>
> drwx------ 43 root wheel 2048 Sep 7 22:24 /backups/
>
> Then I mount filesystem under /backups:
>
> /dev/sd0i on /backups type ffs (local, softdep)
> drwxr-x--- 43 root wheel 2048 Sep 7 22:24 /backups/
>
> The permissions changed, so far good because I've changed
> the modes of the mounted volume to 750.
>
> Then as a normal user belonging to 'wheel' I do:
>
> $ ls -la /backups/
> ls: /backups/..: Permission denied
> [rest of the files are listed normally, including '.']
>
> $ stat /backups/..
> stat: /backups/..: Permission denied
>
> Doing those as root is fine.
>
> I asked my friend to reproduce this on Linux but
> he was unable get any weird errors, therefore
> I'm asking here. :-)
It's not a bug, see mount(2).
-Otto