1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

TTYServer: Use unveil()

This commit is contained in:
Brian Gianforcaro 2020-02-22 12:17:39 -08:00 committed by Andreas Kling
parent 540d9caa8e
commit c0ee0bdc46

View file

@ -38,6 +38,13 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/bin/Shell", "x") < 0) {
perror("unveil");
return 1;
}
unveil(nullptr, nullptr);
if (argc < 2)
return -1;