From ae68def54bb9d7422b13361f25629ea53a8eb25f Mon Sep 17 00:00:00 2001 From: Eli Youngs Date: Mon, 17 Oct 2022 23:29:43 -0700 Subject: [PATCH] hexdump: Pledge stdio and rpath --- Userland/Utilities/hexdump.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Utilities/hexdump.cpp b/Userland/Utilities/hexdump.cpp index 89cf83fc79..4b2e21d03a 100644 --- a/Userland/Utilities/hexdump.cpp +++ b/Userland/Utilities/hexdump.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -21,6 +22,8 @@ enum class State { ErrorOr serenity_main(Main::Arguments args) { + TRY(Core::System::pledge("stdio rpath")); + Core::ArgsParser args_parser; char const* path = nullptr; bool verbose = false;