Re: [for-linus][PATCH 1/3] eventfs: Have the inodes all for files and directories all be the same

From: Kees Cook
Date: Mon Jan 22 2024 - 14:12:33 EST




On January 22, 2024 10:19:12 AM PST, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>On Mon, 22 Jan 2024 at 09:39, Linus Torvalds
><torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> Actually, why not juist add an inode number to your data structures,
>> at least for directories? And just do a static increment on it as they
>> get registered?

Yeah, this is what I'd suggest too. It avoids all the hash complexity. Is wrap-around realistic for it?

-Kees

--
Kees Cook