mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
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
@ -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…
Reference in New Issue
Block a user