Bladeren bron

Kernel/FileSystem: Remove hardcoded unveil path of /usr/lib/Loader.so

If a program needs to execute a dynamic executable program, then it
should unveil /usr/lib/Loader.so by itself and not rely on the Kernel to
allow using this binary without any sense of respect to unveil promises
being made by the running parent program.
Liav A 2 jaren geleden
bovenliggende
commit
03ae9f94cf
1 gewijzigde bestanden met toevoegingen van 0 en 2 verwijderingen
  1. 0 2
      Kernel/FileSystem/VirtualFileSystem.cpp

+ 0 - 2
Kernel/FileSystem/VirtualFileSystem.cpp

@@ -886,8 +886,6 @@ ErrorOr<void> VirtualFileSystem::validate_path_against_process_veil(StringView p
 {
 {
     if (Process::current().veil_state() == VeilState::None)
     if (Process::current().veil_state() == VeilState::None)
         return {};
         return {};
-    if (options == O_EXEC && path == "/usr/lib/Loader.so")
-        return {};
 
 
     VERIFY(path.starts_with('/'));
     VERIFY(path.starts_with('/'));
     VERIFY(!path.contains("/../"sv) && !path.ends_with("/.."sv));
     VERIFY(!path.contains("/../"sv) && !path.ends_with("/.."sv));