mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:47:34 +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:
parent
421587c15c
commit
2cd07c6212
5 changed files with 7 additions and 12 deletions
|
@ -34,7 +34,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio dns", nullptr) < 0) {
|
||||
if (pledge("stdio unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ static String format_ntp_timestamp(NtpTimestamp ntp_timestamp)
|
|||
int main(int argc, char** argv)
|
||||
{
|
||||
#ifdef __serenity__
|
||||
if (pledge("stdio inet dns settime", nullptr) < 0) {
|
||||
if (pledge("stdio inet unix settime", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ int main(int argc, char** argv)
|
|||
|
||||
#ifdef __serenity__
|
||||
if (!adjust_time && !set_time) {
|
||||
if (pledge("stdio inet dns", nullptr) < 0) {
|
||||
if (pledge("stdio inet unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ static const char* host;
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio id inet dns sigaction", nullptr) < 0) {
|
||||
if (pledge("stdio id inet unix sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (pledge("stdio inet dns sigaction", nullptr) < 0) {
|
||||
if (pledge("stdio inet unix sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue