From 5dba1dedb7d3f33e920abb5ee259e42ea8f8b053 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 28 Oct 2023 11:19:23 +0300 Subject: [PATCH] Kernel: Don't warn when running dynamically-linked ELF without PT_INTERP We could technically copy the dynamic loader to other path and run it from there, so let's not assume paths. If the user is so determined to do such thing, then a warning is quite meaningless. --- Kernel/Syscalls/execve.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp index 6dbe86995f..d6c8cb5237 100644 --- a/Kernel/Syscalls/execve.cpp +++ b/Kernel/Syscalls/execve.cpp @@ -864,8 +864,6 @@ ErrorOr> Process::find_elf_interpreter_for_executabl if (main_executable_header.e_type == ET_DYN) { // If it's ET_DYN with no PT_INTERP, then it's a dynamic executable responsible // for its own relocation (i.e. it's /usr/lib/Loader.so) - if (path != "/usr/lib/Loader.so") - dbgln("exec({}): WARNING - Dynamic ELF executable without a PT_INTERP header, and isn't /usr/lib/Loader.so", path); return nullptr; }