diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-02-22 12:17:39 -0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-22 21:19:58 +0100 |
commit | c0ee0bdc464e704646526d4c0e98862b9ecb86bd (patch) | |
tree | 67c8d3cc9b3266a1a56216762bdd309ab9152939 /Servers/TTYServer | |
parent | 540d9caa8e5afcca2a86097a131fa9c70d96f2a2 (diff) | |
download | serenity-c0ee0bdc464e704646526d4c0e98862b9ecb86bd.zip |
TTYServer: Use unveil()
Diffstat (limited to 'Servers/TTYServer')
-rw-r--r-- | Servers/TTYServer/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Servers/TTYServer/main.cpp b/Servers/TTYServer/main.cpp index bb3dfaffcc..79e43ca84b 100644 --- a/Servers/TTYServer/main.cpp +++ b/Servers/TTYServer/main.cpp @@ -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; |