mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:47:45 +00:00
TTYServer: Use unveil()
This commit is contained in:
parent
540d9caa8e
commit
c0ee0bdc46
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ int main(int argc, char** argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unveil("/bin/Shell", "x") < 0) {
|
||||||
|
perror("unveil");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue