summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-13 23:20:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-13 23:28:40 +0200
commit31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48 (patch)
treefaae01cc0950a4d1de1eb7932f07b799c558f0fd /Userland/Games
parent04d78adaf795c803f6867335c63f8339f13459eb (diff)
downloadserenity-31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48.zip
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!
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/2048/main.cpp4
-rw-r--r--Userland/Games/Breakout/main.cpp2
-rw-r--r--Userland/Games/Chess/main.cpp2
-rw-r--r--Userland/Games/Conway/main.cpp4
-rw-r--r--Userland/Games/Minesweeper/main.cpp4
-rw-r--r--Userland/Games/Pong/main.cpp4
-rw-r--r--Userland/Games/Snake/main.cpp4
7 files changed, 12 insertions, 12 deletions
diff --git a/Userland/Games/2048/main.cpp b/Userland/Games/2048/main.cpp
index 590bca285c..5ffb7c1f30 100644
--- a/Userland/Games/2048/main.cpp
+++ b/Userland/Games/2048/main.cpp
@@ -24,7 +24,7 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd unix", nullptr) < 0) {
perror("pledge");
return 1;
}
@@ -46,7 +46,7 @@ int main(int argc, char** argv)
config->sync();
- if (pledge("stdio rpath recvfd sendfd wpath cpath accept", nullptr) < 0) {
+ if (pledge("stdio rpath recvfd sendfd wpath cpath", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Breakout/main.cpp b/Userland/Games/Breakout/main.cpp
index 38e3cbf9fc..cd1f6cd6f8 100644
--- a/Userland/Games/Breakout/main.cpp
+++ b/Userland/Games/Breakout/main.cpp
@@ -15,7 +15,7 @@
int main(int argc, char** argv)
{
- if (pledge("stdio recvfd sendfd rpath wpath cpath accept unix fattr", nullptr) < 0) {
+ if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Chess/main.cpp b/Userland/Games/Chess/main.cpp
index 5420495808..ada369fb99 100644
--- a/Userland/Games/Chess/main.cpp
+++ b/Userland/Games/Chess/main.cpp
@@ -28,7 +28,7 @@ int main(int argc, char** argv)
RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("Chess");
- if (pledge("stdio rpath accept wpath cpath recvfd sendfd thread proc exec", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd thread proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Conway/main.cpp b/Userland/Games/Conway/main.cpp
index 77d84c8382..dc4325dfc7 100644
--- a/Userland/Games/Conway/main.cpp
+++ b/Userland/Games/Conway/main.cpp
@@ -15,14 +15,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd cpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath recvfd sendfd accept", nullptr) < 0) {
+ if (pledge("stdio rpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp
index 8b6d9084a9..dafe9f8323 100644
--- a/Userland/Games/Minesweeper/main.cpp
+++ b/Userland/Games/Minesweeper/main.cpp
@@ -21,14 +21,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath accept wpath cpath recvfd sendfd unix fattr", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath accept wpath cpath recvfd sendfd", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Pong/main.cpp b/Userland/Games/Pong/main.cpp
index a2f8b4a24c..d94a2d9db0 100644
--- a/Userland/Games/Pong/main.cpp
+++ b/Userland/Games/Pong/main.cpp
@@ -16,14 +16,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd cpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath wpath cpath recvfd sendfd accept", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}
diff --git a/Userland/Games/Snake/main.cpp b/Userland/Games/Snake/main.cpp
index 0b5e873440..c4e0a60089 100644
--- a/Userland/Games/Snake/main.cpp
+++ b/Userland/Games/Snake/main.cpp
@@ -19,14 +19,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath wpath cpath recvfd sendfd accept cpath unix fattr", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio rpath wpath cpath recvfd sendfd accept", nullptr) < 0) {
+ if (pledge("stdio rpath wpath cpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}