Skip to content

Commit

Permalink
SystemMonitor: Add missing /boot/Kernel.debug unveil
Browse files Browse the repository at this point in the history
When using the stack tab as root LibSymbolication uses this file to
provide Kernel symbols.
  • Loading branch information
IdanHo committed Feb 21, 2022
1 parent b45ed48 commit e167caf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Userland/Applications/SystemMonitor/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (auto result = Core::System::unveil("/usr/local/lib", "r"); result.is_error() && result.error().code() != ENOENT)
return result.release_error();

// This file is only accesible when running as root
if (auto result = Core::System::unveil("/boot/Kernel.debug", "r"); result.is_error() && result.error().code() != EACCES)
return result.release_error();

TRY(Core::System::unveil("/bin/Profiler", "rx"));
TRY(Core::System::unveil("/bin/Inspector", "rx"));
TRY(Core::System::unveil(nullptr, nullptr));
Expand Down

0 comments on commit e167caf

Please sign in to comment.