diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 21:29:42 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 21:35:01 +0100 |
commit | 1c755d848e3cefcc82a8c01b5deacd0bf50035c1 (patch) | |
tree | e078c88954c61f4642e753e18d745ce933f21a68 /Servers/SystemServer | |
parent | a84aac86b14de13b4492164a066a63790e1fbe11 (diff) | |
download | serenity-1c755d848e3cefcc82a8c01b5deacd0bf50035c1.zip |
SystemServer: Use pledge()
Diffstat (limited to 'Servers/SystemServer')
-rw-r--r-- | Servers/SystemServer/main.cpp | 5 |
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 = { |