Thread (8 messages) flat view 8 messages, 6 authors, 2012-05-10

Re: Extended file stat: Splitting file- and fs-specific info?

From: David Howells <hidden>
Date: 2012-05-09 09:21:14
Also in: linux-cifs, linux-ext4, linux-fsdevel, linux-nfs

Dave Chinner [off-list ref] wrote:
I don't think we want to expose the inode generation numbers. It is
trivial to construct NFS file handles (usually just fsid, inode
number and generation) with that information and hence bypass
security checks to access files.
I was asked for it by Bernd Schubert for userspace NFS servers and FUSE -
maybe he can say what he wants it for.

I also have a note that Jeremy Allison asked for it, but I can't find where or
why, so that might be an error.

It looks like FreeBSD do have an st_gen field in their stat struct, but it's
only filled in for root.  Maybe I could do something like that?

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help