From b471ddfa73b5f7444ff5e2b6f427fca3875d549f Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 19 Jun 2023 17:50:42 +0100 Subject: [PATCH] groupdel: Ensure the veil is closed after required files are unveiled --- Userland/Utilities/groupdel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Utilities/groupdel.cpp b/Userland/Utilities/groupdel.cpp index fb2261dc8d..53dbf4e0d6 100644 --- a/Userland/Utilities/groupdel.cpp +++ b/Userland/Utilities/groupdel.cpp @@ -19,6 +19,7 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::pledge("stdio wpath rpath cpath fattr proc exec")); TRY(Core::System::unveil("/etc/", "rwc")); TRY(Core::System::unveil("/bin/rm", "x")); + TRY(Core::System::unveil(nullptr, nullptr)); DeprecatedString groupname;