From acd4cc97fc26e5307df9dbf86b0fb4823e0cada0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 28 Nov 2021 08:12:33 +0100 Subject: [PATCH] KeyboardSettings: Remove some unnecessary pledge promises This program doesn't need to create or write files directly. --- Userland/Applications/KeyboardSettings/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/KeyboardSettings/main.cpp b/Userland/Applications/KeyboardSettings/main.cpp index 8e1ea89090..037a61e592 100644 --- a/Userland/Applications/KeyboardSettings/main.cpp +++ b/Userland/Applications/KeyboardSettings/main.cpp @@ -17,11 +17,11 @@ ErrorOr serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio rpath cpath wpath recvfd sendfd unix proc exec")); + TRY(Core::System::pledge("stdio rpath recvfd sendfd unix proc exec")); auto app = TRY(GUI::Application::try_create(arguments)); Config::pledge_domains("KeyboardSettings"); - TRY(Core::System::pledge("stdio rpath cpath wpath recvfd sendfd proc exec")); + TRY(Core::System::pledge("stdio rpath recvfd sendfd proc exec")); TRY(Core::System::unveil("/res", "r")); TRY(Core::System::unveil("/bin/keymap", "x")); TRY(Core::System::unveil("/proc/keymap", "r"));