1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

Kernel+Userland: Remove "dns" pledge promise alias

This was just an alias for "unix" that I added early on back when there
was some belief that we might be compatible with OpenBSD. We're clearly
never going to be compatible with their pledges so just drop the alias.
This commit is contained in:
Andreas Kling 2021-01-22 18:42:57 +01:00
parent 421587c15c
commit 2cd07c6212
5 changed files with 7 additions and 12 deletions

View file

@ -33,7 +33,7 @@
int main(int argc, char** argv)
{
if (pledge("stdio inet dns unix recvfd sendfd cpath rpath fattr wpath cpath", nullptr) < 0) {
if (pledge("stdio inet unix recvfd sendfd cpath rpath fattr wpath cpath", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -45,7 +45,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio inet dns unix recvfd sendfd rpath wpath cpath", nullptr) < 0) {
if (pledge("stdio inet unix recvfd sendfd rpath wpath cpath", nullptr) < 0) {
perror("pledge");
return 1;
}