[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:
Thomas Faber 2012-06-26 07:21:45 +00:00
parent 2f0d0258a2
commit f7267c995f
2 changed files with 8 additions and 6 deletions

View file

@ -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)
{

View file

@ -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;