From 62907a8ecd5ba2c769e080b7f07ae42c5efc1606 Mon Sep 17 00:00:00 2001 From: Yao Sun Date: Mon, 24 Jun 2024 15:21:30 -0700 Subject: [PATCH] Update comments --- src/WinGetServer/WinMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WinGetServer/WinMain.cpp b/src/WinGetServer/WinMain.cpp index ea33bf37d4..43378f1fc6 100644 --- a/src/WinGetServer/WinMain.cpp +++ b/src/WinGetServer/WinMain.cpp @@ -104,7 +104,7 @@ extern "C" HRESULT CreateInstance( HRESULT InitializeComSecurity() { wil::unique_hlocal_security_descriptor securityDescriptor; - // Allow Everyone and AppContainer access. 3 is COM_RIGHTS_EXECUTE | COM_RIGHTS_EXECUTE_LOCAL + // Allow Self, System, Built-in Admin and App Container access. 3 is COM_RIGHTS_EXECUTE | COM_RIGHTS_EXECUTE_LOCAL std::string securityDescriptorString = "O:SYG:SYD:(A;;3;;;PS)(A;;3;;;SY)(A;;3;;;BA)(A;;3;;;AC)"; RETURN_LAST_ERROR_IF(!ConvertStringSecurityDescriptorToSecurityDescriptorA(securityDescriptorString.c_str(), SDDL_REVISION_1, &securityDescriptor, nullptr));