groupdel: Ensure the veil is closed after required files are unveiled

This commit is contained in:
Tim Ledbetter 2023-06-19 17:50:42 +01:00 committed by Andreas Kling
parent e99a6fede4
commit b471ddfa73

View file

@ -19,6 +19,7 @@ ErrorOr<int> 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;