From 09fe9b546fe6dad4841b4e65ad48fb14ff7974d9 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 3 Apr 2022 16:15:41 -0700 Subject: [PATCH] Services: Use default execpromises parameter to `pledge(..)` --- Userland/Services/EchoServer/main.cpp | 2 +- Userland/Services/SpiceAgent/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Services/EchoServer/main.cpp b/Userland/Services/EchoServer/main.cpp index 50eb7fa9487..7bd22eadc69 100644 --- a/Userland/Services/EchoServer/main.cpp +++ b/Userland/Services/EchoServer/main.cpp @@ -15,7 +15,7 @@ ErrorOr serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio unix inet id accept", nullptr)); + TRY(Core::System::pledge("stdio unix inet id accept")); TRY(Core::System::unveil(nullptr, nullptr)); int port = 7; diff --git a/Userland/Services/SpiceAgent/main.cpp b/Userland/Services/SpiceAgent/main.cpp index 8299db60147..95d686507e9 100644 --- a/Userland/Services/SpiceAgent/main.cpp +++ b/Userland/Services/SpiceAgent/main.cpp @@ -16,7 +16,7 @@ ErrorOr serenity_main(Main::Arguments) { Core::EventLoop loop; - TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd", nullptr)); + TRY(Core::System::pledge("unix rpath wpath stdio sendfd recvfd")); TRY(Core::System::unveil(SPICE_DEVICE, "rw")); TRY(Core::System::unveil("/tmp/portal/clipboard", "rw")); TRY(Core::System::unveil(nullptr, nullptr));