summaryrefslogtreecommitdiff
path: root/Servers/SystemServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-11 21:29:42 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-11 21:35:01 +0100
commit1c755d848e3cefcc82a8c01b5deacd0bf50035c1 (patch)
treee078c88954c61f4642e753e18d745ce933f21a68 /Servers/SystemServer
parenta84aac86b14de13b4492164a066a63790e1fbe11 (diff)
downloadserenity-1c755d848e3cefcc82a8c01b5deacd0bf50035c1.zip
SystemServer: Use pledge()
Diffstat (limited to 'Servers/SystemServer')
-rw-r--r--Servers/SystemServer/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Servers/SystemServer/main.cpp b/Servers/SystemServer/main.cpp
index e69405ce45..a5f69a3fe5 100644
--- a/Servers/SystemServer/main.cpp
+++ b/Servers/SystemServer/main.cpp
@@ -77,6 +77,11 @@ static void mount_all_filesystems()
int main(int, char**)
{
+ if (pledge("stdio proc exec unix rpath cpath chown fattr id", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
mount_all_filesystems();
struct sigaction sa = {