Re: [PATCH] tracefs/eventfs: Use root and instance inodes as default ownership
From: Linus Torvalds
Date: Thu Jan 04 2024 - 15:02:31 EST
On Thu, 4 Jan 2024 at 11:35, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>>
> Which is *NOT* the inode, because the 'struct file' has other things
> in it (the file position, the permissions that were used at open time
> etc, close-on-exec state etc etc).
That close-on-exec thing was a particularly bad example of things that
are in the 'struct file', because it's in fact the only thing that
*isn't* in 'struct file' and is associated directly with the 'int fd'.
But hopefully the intent was clear despite me picking a particularly
bad example.
Linus