diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 85e8d9671b..3af1323e40 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2021, Andreas Kling * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -518,6 +518,12 @@ int main(int argc, char** argv) unveil(nullptr, nullptr); config->sync(); + + if (pledge("stdio tty rpath accept cpath wpath recvfd sendfd unix", nullptr) < 0) { + perror("pledge"); + return 1; + } + int result = app->exec(); dbgln("Exiting terminal, updating utmp"); utmp_update(pts_name, 0, false);