Files
ladybird/Kernel/Syscalls
Ben Wiederhake c05c5a7ff4 Kernel: Clarify ambiguous {File,Description}::absolute_path
Found due to smelly code in InodeFile::absolute_path.

In particular, this replaces the following misleading methods:

File::absolute_path
This method *never* returns an actual path, and if called on an
InodeFile (which is impossible), it would VERIFY_NOT_REACHED().

OpenFileDescription::try_serialize_absolute_path
OpenFileDescription::absolute_path
These methods do not guarantee to return an actual path (just like the
other method), and just like Custody::absolute_path they do not
guarantee accuracy. In particular, just renaming the method made a
TOCTOU bug obvious.

The new method signatures use KResultOr, just like
try_serialize_absolute_path() already did.
2021-10-31 12:06:28 +01:00
..
2021-09-05 16:25:40 +02:00
2021-09-06 13:06:05 +02:00
2021-09-05 18:15:05 +02:00
2021-10-01 00:51:49 +01:00
2021-09-12 11:24:02 +02:00
2021-09-05 16:25:40 +02:00
2021-09-05 18:15:05 +02:00
2021-10-13 16:10:50 +02:00
2021-09-05 17:53:59 +02:00
2021-09-05 17:54:33 +02:00
2021-09-11 00:28:39 +02:00
2021-09-05 17:56:40 +02:00
2021-09-05 17:53:28 +02:00