Revert "Terminal: Drop "proc" and "exec" pledges after initializing"

This reverts commit dea0d22ab3.

I'm dumb. We need these for utmpupdate, and for "new terminal" :^(

Fixes #5372.
This commit is contained in:
Andreas Kling 2021-02-16 17:44:40 +01:00
parent 085696ea39
commit 096cdf891b
Notes: sideshowbarker 2024-07-18 22:12:49 +09:00

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -504,12 +504,6 @@ 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);