Skip to content

Commit

Permalink
(hopefully) Fix access rights when setting up IPC server on non-Engli…
Browse files Browse the repository at this point in the history
…sh systems
  • Loading branch information
Sparronator9999 committed Sep 2, 2024
1 parent a54991e commit cdfd159
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion YAMDCC.Service/svcFanControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using System.IO;
using System.IO.Pipes;
using System.Security.AccessControl;
using System.Security.Principal;
using System.ServiceProcess;
using YAMDCC.Config;
using YAMDCC.ECAccess;
Expand Down Expand Up @@ -74,7 +75,8 @@ public svcFanControl()
_EC = new EC();

PipeSecurity security = new PipeSecurity();
security.AddAccessRule(new PipeAccessRule("Administrators", PipeAccessRights.ReadWrite, AccessControlType.Allow));
//security.AddAccessRule(new PipeAccessRule("Administrators", PipeAccessRights.ReadWrite, AccessControlType.Allow));
security.SetSecurityDescriptorSddlForm("O:BAG:SYD:(A;;GA;;;SY)(A;;GRGW;;;BA)");

IPCServer = new Server<ServiceCommand, ServiceResponse>("YAMDCC-Server", 0, security);
}
Expand Down

0 comments on commit cdfd159

Please sign in to comment.