瀏覽代碼

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

Tim Ledbetter 2 年之前
父節點
當前提交
b471ddfa73
共有 1 個文件被更改,包括 1 次插入0 次删除
  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::pledge("stdio wpath rpath cpath fattr proc exec"));
     TRY(Core::System::unveil("/etc/", "rwc"));
     TRY(Core::System::unveil("/etc/", "rwc"));
     TRY(Core::System::unveil("/bin/rm", "x"));
     TRY(Core::System::unveil("/bin/rm", "x"));
+    TRY(Core::System::unveil(nullptr, nullptr));
 
 
     DeprecatedString groupname;
     DeprecatedString groupname;