Sfoglia il codice sorgente

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

Tim Ledbetter 2 anni fa
parent
commit
b471ddfa73
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Userland/Utilities/groupdel.cpp

+ 1 - 0
Userland/Utilities/groupdel.cpp

@@ -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;