TTYServer: Use unveil()
This commit is contained in:
parent
540d9caa8e
commit
c0ee0bdc46
Notes:
sideshowbarker
2024-07-19 09:09:46 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/c0ee0bdc464 Pull-request: https://github.com/SerenityOS/serenity/pull/1276
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue