Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit a4b5e68e1b - Show all commits

View File

@ -118,6 +118,11 @@ namespace VFS
return err(EACCES);
}
virtual Result<SharedPtr<Inode>> open()
{
return SharedPtr<Inode> { this };
}
// Directory-specific methods
virtual Result<SharedPtr<Inode>> find(const char* name) const = 0;

View File

@ -62,6 +62,8 @@ Result<u64> sys_openat(Registers*, SyscallArgs args)
if ((flags & O_WRONLY) && !VFS::can_write(inode, current->auth)) return err(EACCES);
}
inode = TRY(inode->open());
// This should only be possible if O_NOFOLLOW was in flags.
if (inode->type() == VFS::InodeType::Symlink) return err(ELOOP);