Case-insensitive filesystem lookups
Case-insensitive filesystem lookups
Posted May 25, 2018 9:16 UTC (Fri) by MarcB (subscriber, #101804)In reply to: Case-insensitive filesystem lookups by hkario
Parent article: Case-insensitive filesystem lookups
I haven't found any detailed information of Android's "wrapfs", but I assume it does more than just providing case-insensitive lookups. Likely it also enforces an encoding and perhaps even a Unicode normalization.
If case-insensitive lookups are added, what is preventing a bad or careless actor from creating "duplicate" files, perhaps "superseding" the original file? (But this is already possible in Linux today, as no Unicode normalization is enforced, i.e. you can have files using different UTF-8 encodings of the same decoded string in the same directory).
Either you rely on some sanitization layer on top of the filesystem through which every access must pass, or you add new, stricter versions of all syscalls dealing with filenames.
