Kernel: Fix /proc/<pid>/exe permissions

This commit is contained in:
2025-08-29 01:40:56 +03:00
parent f15f88ebd6
commit 30215963b2
4 changed files with 62 additions and 10 deletions

View File

@@ -463,6 +463,14 @@ namespace Kernel
return read_from_vec_of_str(m_environ, offset, buffer);
}
BAN::ErrorOr<BAN::String> Process::proc_executable() const
{
LockGuard _(m_process_lock);
BAN::String result;
TRY(result.append(m_executable));
return result;
}
BAN::ErrorOr<VirtualFileSystem::File> Process::find_file(int fd, const char* path, int flags) const
{
ASSERT(m_process_lock.is_locked());