From 096cdf891bcd0bed5d8d720a7ebc94601a00216b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Feb 2021 17:44:40 +0100 Subject: [PATCH] Revert "Terminal: Drop "proc" and "exec" pledges after initializing" This reverts commit dea0d22ab356924f590a44e3b7d2e474f6e9fb61. I'm dumb. We need these for utmpupdate, and for "new terminal" :^( Fixes #5372. --- Userland/Applications/Terminal/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 15dfa5b448..200a569125 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, Andreas Kling + * Copyright (c) 2018-2020, Andreas Kling * 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);