SystemServer: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:29:42 +01:00
commit 1c755d848e
Notes: sideshowbarker 2024-07-19 10:10:17 +09:00

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