mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
Userland: Tighten a *lot* of pledges! :^)
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
This commit is contained in:
parent
04d78adaf7
commit
31d4bcf5bf
59 changed files with 97 additions and 163 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
|
||||
{
|
||||
if (pledge("stdio unix inet cpath rpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio unix inet cpath rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv)
|
|||
auto ifs = ifs_result.release_value();
|
||||
auto client = DHCPv4Client::construct(move(ifs.ready), move(ifs.not_ready));
|
||||
|
||||
if (pledge("stdio inet cpath rpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio inet cpath rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue