瀏覽代碼

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 年之前
父節點
當前提交
d82c91ac2c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;