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
Notes: sideshowbarker 2024-07-19 09:09:46 +09:00

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;