Re: [PATCH] tracefs/eventfs: Use root and instance inodes as default ownership

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2024-01-04 20:02:21
Also in
linux-doc, linux-fsdevel, lkml
Reply to
Linus Torvalds, 2024-01-04
On Thu, 4 Jan 2024 at 11:35, Linus Torvalds
[off-list ref] wrote:
quoted
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
Thread (37 messages) 37 messages, 5 authors, last reply 2024-01-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help