mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17: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:
parent
421587c15c
commit
2cd07c6212
5 changed files with 7 additions and 12 deletions
|
@ -62,11 +62,6 @@ int Process::sys$pledge(Userspace<const Syscall::SC_pledge_params*> user_params)
|
|||
}
|
||||
ENUMERATE_PLEDGE_PROMISES
|
||||
#undef __ENUMERATE_PLEDGE_PROMISE
|
||||
if (part == "dns") {
|
||||
// "dns" is an alias for "unix" since DNS queries go via LookupServer
|
||||
mask |= (1u << (u32)Pledge::unix);
|
||||
continue;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue