mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03: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
Notes:
sideshowbarker
2024-07-18 22:12:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/096cdf891bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user