mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
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:
parent
085696ea39
commit
096cdf891b
1 changed files with 1 additions and 7 deletions
|
@ -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.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -504,12 +504,6 @@ int main(int argc, char** argv)
|
||||||
unveil(nullptr, nullptr);
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
config->sync();
|
config->sync();
|
||||||
|
|
||||||
if (pledge("stdio tty rpath accept cpath wpath recvfd sendfd unix", nullptr) < 0) {
|
|
||||||
perror("pledge");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int result = app->exec();
|
int result = app->exec();
|
||||||
dbgln("Exiting terminal, updating utmp");
|
dbgln("Exiting terminal, updating utmp");
|
||||||
utmp_update(pts_name, 0, false);
|
utmp_update(pts_name, 0, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue