mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
SystemServer: Use pledge()
This commit is contained in:
parent
a84aac86b1
commit
1c755d848e
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ static void mount_all_filesystems()
|
||||||
|
|
||||||
int main(int, char**)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio proc exec unix rpath cpath chown fattr id", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
mount_all_filesystems();
|
mount_all_filesystems();
|
||||||
|
|
||||||
struct sigaction sa = {
|
struct sigaction sa = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue