Pārlūkot izejas kodu

SystemMonitor: Add back accidentally removed veil lock

Since the call to lock the veil was missing, the protections provided
by unveil() were not actually enabled.
Idan Horowitz 3 gadi atpakaļ
vecāks
revīzija
d82c91ac2c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Userland/Applications/SystemMonitor/main.cpp

+ 1 - 0
Userland/Applications/SystemMonitor/main.cpp

@@ -125,6 +125,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
 
     TRY(Core::System::unveil("/bin/Profiler", "rx"));
     TRY(Core::System::unveil("/bin/Inspector", "rx"));
+    TRY(Core::System::unveil(nullptr, nullptr));
 
     StringView args_tab = "processes"sv;
     Core::ArgsParser parser;