On Wed, Feb 19, 2020 at 10:55 AM Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > Why don't you just use mkdir with S_ISVTX set, or something like that? Actually, since this is apparently a different filetype, the _logical_ thing to do is to use "mknod()". Yes, yes, it will require a new case (and maybe a per-filesystem callback or a flag or something) in "may_mknod()" and "do_mknodat()" to let those new kinds through, but it sounds like mknod() is actually what you're doing. You presumably need a new type _anyway_ for stat() and/or the filldir d_type field. Or do you always want to make it look exactly like a directory to all user space? Linus