diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-11-27 14:26:34 -0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-28 08:04:57 +0100 |
commit | cf4fa936be63a8f5931886142daca54b99293a52 (patch) | |
tree | fcb69966e7fd2a16d30ed2e40e85d2245f1dd409 /Userland/DevTools/HackStudio | |
parent | 44ffe3e5bb2659fcd4bcd65adaf5fb6e855a9c4f (diff) | |
download | serenity-cf4fa936be63a8f5931886142daca54b99293a52.zip |
Everywhere: Use default execpromises argument for Core::System::pledge
Diffstat (limited to 'Userland/DevTools/HackStudio')
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/Cpp/main.cpp | 4 | ||||
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/Shell/main.cpp | 4 | ||||
-rw-r--r-- | Userland/DevTools/HackStudio/main.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/main.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/main.cpp index 5a3b0e3cff..f0de352e66 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/main.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/main.cpp @@ -34,12 +34,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) ErrorOr<int> mode_server() { Core::EventLoop event_loop; - TRY(Core::System::pledge("stdio unix recvfd rpath ", nullptr)); + TRY(Core::System::pledge("stdio unix recvfd rpath")); auto socket = TRY(Core::LocalSocket::take_over_accepted_socket_from_system_server()); IPC::new_client_connection<LanguageServers::Cpp::ClientConnection>(move(socket), 1); - TRY(Core::System::pledge("stdio recvfd rpath", nullptr)); + TRY(Core::System::pledge("stdio recvfd rpath")); TRY(Core::System::unveil("/usr/include", "r")); // unveil will be sealed later, when we know the project's root path. diff --git a/Userland/DevTools/HackStudio/LanguageServers/Shell/main.cpp b/Userland/DevTools/HackStudio/LanguageServers/Shell/main.cpp index bfad0eb1fd..c7719fefba 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Shell/main.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Shell/main.cpp @@ -14,11 +14,11 @@ ErrorOr<int> serenity_main(Main::Arguments) { Core::EventLoop event_loop; - TRY(Core::System::pledge("stdio unix rpath recvfd", nullptr)); + TRY(Core::System::pledge("stdio unix rpath recvfd")); auto socket = TRY(Core::LocalSocket::take_over_accepted_socket_from_system_server()); IPC::new_client_connection<LanguageServers::Shell::ClientConnection>(move(socket), 1); - TRY(Core::System::pledge("stdio rpath recvfd", nullptr)); + TRY(Core::System::pledge("stdio rpath recvfd")); TRY(Core::System::unveil("/etc/passwd", "r")); return event_loop.exec(); diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp index 0d65db23d3..76f237afdc 100644 --- a/Userland/DevTools/HackStudio/main.cpp +++ b/Userland/DevTools/HackStudio/main.cpp @@ -35,7 +35,7 @@ static void update_path_environment_variable(); ErrorOr<int> serenity_main(Main::Arguments arguments) { - TRY(Core::System::pledge("stdio recvfd sendfd tty rpath cpath wpath proc exec unix fattr thread ptrace", nullptr)); + TRY(Core::System::pledge("stdio recvfd sendfd tty rpath cpath wpath proc exec unix fattr thread ptrace")); auto app = GUI::Application::construct(arguments.argc, arguments.argv); Config::pledge_domains({ "HackStudio", "Terminal" }); |