mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
SystemMonitor: Add missing /boot/Kernel.debug unveil
When using the stack tab as root LibSymbolication uses this file to provide Kernel symbols.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 18:24:56 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/e167cafa70 Pull-request: https://github.com/SerenityOS/serenity/pull/12707 Reviewed-by: https://github.com/bgianfo ✅
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user