[NTOS:SE] Assign the control flag bits to the newly created security descriptor

We allocate memory pool for a new security descriptor with specific info filled by the caller but we don't set the control flag bits for the newly allocated descriptor, which is wrong. Originally spotted by Vadim Galyant.
CORE-17650
This commit is contained in:
George Bișoc 2021-07-03 17:20:48 +02:00
parent bf05fcbd29
commit c869c4778d
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -962,6 +962,7 @@ SeSetSecurityDescriptorInfoEx(
Current += SaclLength;
}
NewSd->Control |= Control;
*ObjectsSecurityDescriptor = NewSd;
return STATUS_SUCCESS;
}