summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-28 17:24:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-28 22:29:28 +0200
commit158355e0d773d1121286bf7a51575b554be98806 (patch)
treed2aa14921fe926236e8d2e58dfe316a0f6e23bff /Kernel/Process.h
parente35b0605013163ea2f3425ec4ed4489e64d03280 (diff)
downloadserenity-158355e0d773d1121286bf7a51575b554be98806.zip
Kernel+LibELF: Add support for validating and loading ELF64 executables
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 2de9e7fd80..309da0abf0 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -448,7 +448,7 @@ public:
KResult exec(String path, Vector<String> arguments, Vector<String> environment, int recusion_depth = 0);
- KResultOr<LoadResult> load(NonnullRefPtr<FileDescription> main_program_description, RefPtr<FileDescription> interpreter_description, const Elf32_Ehdr& main_program_header);
+ KResultOr<LoadResult> load(NonnullRefPtr<FileDescription> main_program_description, RefPtr<FileDescription> interpreter_description, const ElfW(Ehdr) & main_program_header);
bool is_superuser() const { return euid() == 0; }
@@ -531,12 +531,12 @@ private:
bool create_perf_events_buffer_if_needed();
void delete_perf_events_buffer();
- KResult do_exec(NonnullRefPtr<FileDescription> main_program_description, Vector<String> arguments, Vector<String> environment, RefPtr<FileDescription> interpreter_description, Thread*& new_main_thread, u32& prev_flags, const Elf32_Ehdr& main_program_header);
+ KResult do_exec(NonnullRefPtr<FileDescription> main_program_description, Vector<String> arguments, Vector<String> environment, RefPtr<FileDescription> interpreter_description, Thread*& new_main_thread, u32& prev_flags, const ElfW(Ehdr) & main_program_header);
KResultOr<size_t> do_write(FileDescription&, const UserOrKernelBuffer&, size_t);
KResultOr<int> do_statvfs(String path, statvfs* buf);
- KResultOr<RefPtr<FileDescription>> find_elf_interpreter_for_executable(const String& path, const Elf32_Ehdr& elf_header, int nread, size_t file_size);
+ KResultOr<RefPtr<FileDescription>> find_elf_interpreter_for_executable(const String& path, const ElfW(Ehdr) & elf_header, int nread, size_t file_size);
int alloc_fd(int first_candidate_fd = 0);