mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 09:20:43 +08:00
[NTOS:SE] Allocate pool memory for security descriptor based on the caller pool type request
We're indiscriminately allocate the pool as non paged all the time, thus further ignoring the pool type parameter of the function.
This commit is contained in:
@@ -920,7 +920,7 @@ SeSetSecurityDescriptorInfoEx(
|
||||
}
|
||||
SaclLength = Sacl ? ROUND_UP((ULONG)Sacl->AclSize, 4) : 0;
|
||||
|
||||
NewSd = ExAllocatePoolWithTag(NonPagedPool,
|
||||
NewSd = ExAllocatePoolWithTag(PoolType,
|
||||
sizeof(SECURITY_DESCRIPTOR_RELATIVE) +
|
||||
OwnerLength + GroupLength +
|
||||
DaclLength + SaclLength,
|
||||
|
||||
Reference in New Issue
Block a user