[SMSS] Use the appropriate security descriptor when creating the LPC port

This commit is contained in:
Pierre Schweitzer 2019-08-03 21:55:28 +02:00
parent 611989943e
commit d49a53ca99
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -2441,7 +2441,7 @@ SmpInit(IN PUNICODE_STRING InitialCommand,
/* Create the SM API Port */
RtlInitUnicodeString(&PortName, L"\\SmApiPort");
InitializeObjectAttributes(&ObjectAttributes, &PortName, 0, NULL, NULL);
InitializeObjectAttributes(&ObjectAttributes, &PortName, 0, NULL, SmpApiPortSecurityDescriptor);
Status = NtCreatePort(&PortHandle,
&ObjectAttributes,
sizeof(SB_CONNECTION_INFO),