1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 03:08:11 +00:00

SystemServer: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:29:42 +01:00
parent a84aac86b1
commit 1c755d848e

View file

@ -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 = {