file metadata via fs API (was: [GIT PULL] Filesystem Information)

David Howells dhowells at redhat.com
Wed Aug 12 14:23:52 UTC 2020


Miklos Szeredi <miklos at szeredi.hu> wrote:

> The point is that generic operations already exist and no need to add
> new, specialized ones to access metadata.

open and read already exist, yes, but the metadata isn't currently in
convenient inodes and dentries that you can just walk through.  So you're
going to end up with a specialised filesystem instead, I suspect.  Basically,
it's the same as your do-everything-through-/proc/self/fds/ approach.

And it's going to be heavier.  I don't know if you're planning on creating a
superblock each time you do an O_ALT open, but you will end up creating some
inodes, dentries and a file - even before you get to the reading bit.

David



More information about the Linux-security-module-archive mailing list