mirror of
https://github.com/reactos/reactos.git
synced 2024-06-26 07:51:52 +00:00
[NTOSKRNL:SE]
- Use the correct pool tags for allocations in SepCaptureAcl/SepCaptureSid See issue #7138 for more details. svn path=/trunk/; revision=56806
This commit is contained in:
parent
2f0d0258a2
commit
f7267c995f
|
@ -296,8 +296,9 @@ SepCaptureAcl(IN PACL InputAcl,
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
NewAcl = ExAllocatePool(PoolType,
|
||||
AclSize);
|
||||
NewAcl = ExAllocatePoolWithTag(PoolType,
|
||||
AclSize,
|
||||
TAG_ACL);
|
||||
if (NewAcl != NULL)
|
||||
{
|
||||
_SEH2_TRY
|
||||
|
@ -329,8 +330,9 @@ SepCaptureAcl(IN PACL InputAcl,
|
|||
{
|
||||
AclSize = InputAcl->AclSize;
|
||||
|
||||
NewAcl = ExAllocatePool(PoolType,
|
||||
AclSize);
|
||||
NewAcl = ExAllocatePoolWithTag(PoolType,
|
||||
AclSize,
|
||||
TAG_ACL);
|
||||
|
||||
if (NewAcl != NULL)
|
||||
{
|
||||
|
|
|
@ -285,7 +285,7 @@ SepCaptureSid(IN PSID InputSid,
|
|||
_SEH2_END;
|
||||
|
||||
/* allocate a SID and copy it */
|
||||
NewSid = ExAllocatePool(PoolType, SidSize);
|
||||
NewSid = ExAllocatePoolWithTag(PoolType, SidSize, TAG_SID);
|
||||
if (!NewSid)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
|
@ -312,7 +312,7 @@ SepCaptureSid(IN PSID InputSid,
|
|||
SidSize = RtlLengthRequiredSid(Sid->SubAuthorityCount);
|
||||
|
||||
/* allocate a SID and copy it */
|
||||
NewSid = ExAllocatePool(PoolType, SidSize);
|
||||
NewSid = ExAllocatePoolWithTag(PoolType, SidSize, TAG_SID);
|
||||
if (NewSid == NULL)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
|
|
Loading…
Reference in a new issue