瀏覽代碼

KeyboardSettings: Remove some unnecessary pledge promises

This program doesn't need to create or write files directly.
Andreas Kling 3 年之前
父節點
當前提交
acd4cc97fc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Userland/Applications/KeyboardSettings/main.cpp

+ 2 - 2
Userland/Applications/KeyboardSettings/main.cpp

@@ -17,11 +17,11 @@
 
 
 ErrorOr<int> serenity_main(Main::Arguments arguments)
 ErrorOr<int> 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));
     auto app = TRY(GUI::Application::try_create(arguments));
     Config::pledge_domains("KeyboardSettings");
     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("/res", "r"));
     TRY(Core::System::unveil("/bin/keymap", "x"));
     TRY(Core::System::unveil("/bin/keymap", "x"));
     TRY(Core::System::unveil("/proc/keymap", "r"));
     TRY(Core::System::unveil("/proc/keymap", "r"));