mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:47:34 +00:00
Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd"
Now that WindowServer broadcasts the system theme using an anonymous file, we need clients to pledge "recvfd" so they can receive it. Some programs keep the "shared_buffer" pledge since it's still used for a handful of things.
This commit is contained in:
parent
d846808122
commit
d312011708
59 changed files with 112 additions and 111 deletions
|
@ -30,12 +30,12 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
Core::EventLoop loop;
|
||||
if (pledge("stdio sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
if (pledge("stdio sendfd shared_buffer accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept unix rpath cpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
Core::EventLoop event_loop;
|
||||
if (pledge("stdio sendfd shared_buffer unix accept", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd unix accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ int main(int, char**)
|
|||
bool ok = server->take_over_from_system_server();
|
||||
ASSERT(ok);
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
int main(int, char**)
|
||||
{
|
||||
Core::EventLoop event_loop;
|
||||
if (pledge("stdio sendfd shared_buffer unix", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd unix", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ int main(int, char**)
|
|||
|
||||
auto socket = Core::LocalSocket::take_over_accepted_socket_from_system_server();
|
||||
IPC::new_client_connection<ImageDecoder::ClientConnection>(socket.release_nonnull(), 1);
|
||||
if (pledge("stdio sendfd shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept rpath wpath cpath unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath wpath cpath unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ int main(int argc, char** argv)
|
|||
|
||||
unveil(nullptr, nullptr);
|
||||
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ int main(int argc, char** argv)
|
|||
|
||||
GUI::WindowServerConnection::the().send_sync<Messages::WindowServer::SetSystemMenu>(menu->menu_id());
|
||||
|
||||
if (pledge("stdio sendfd shared_buffer accept rpath proc exec", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept rpath proc exec", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept proc exec rpath unix cpath fattr sigaction", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ int main(int argc, char** argv)
|
|||
;
|
||||
});
|
||||
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept proc exec rpath", nullptr) < 0) {
|
||||
if (pledge("stdio recvfd sendfd accept proc exec rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
int main(int, char**)
|
||||
{
|
||||
Core::EventLoop event_loop;
|
||||
if (pledge("stdio recvfd sendfd shared_buffer accept unix rpath recvfd", nullptr) < 0) {
|
||||
if (pledge("stdio shared_buffer recvfd sendfd accept unix rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue