diff --git a/Userland/Utilities/su.cpp b/Userland/Utilities/su.cpp index 546e28b529..de276a726f 100644 --- a/Userland/Utilities/su.cpp +++ b/Userland/Utilities/su.cpp @@ -95,6 +95,11 @@ int main(int argc, char** argv) return 1; } + if (pledge("stdio exec", nullptr) < 0) { + perror("pledge"); + return 1; + } + execl(account.shell().characters(), account.shell().characters(), nullptr); perror("execl"); return 1;