1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 15:55:07 +00:00

Kernel: Support chdir() to a directory that's executable but not readable.

Also the superuser should be allowed to resolve any possible path without
getting tripped up by EACCES.
This commit is contained in:
Andreas Kling 2019-03-01 23:54:07 +01:00
parent 4f9b6a88a6
commit f75eb9af16
3 changed files with 19 additions and 8 deletions

View file

@ -75,6 +75,7 @@ public:
KResult access(const String& path, int mode, Inode& base);
bool stat(const String& path, int& error, int options, Inode& base, struct stat&);
KResult utime(const String& path, Inode& base, time_t atime, time_t mtime);
KResultOr<Retained<Inode>> open_directory(const String& path, Inode& base);
void register_device(Device&);
void unregister_device(Device&);