Author: tfaber
Date: Tue Jun 26 07:21:45 2012
New Revision: 56806
URL:
http://svn.reactos.org/svn/reactos?rev=56806&view=rev
Log:
[NTOSKRNL:SE]
- Use the correct pool tags for allocations in SepCaptureAcl/SepCaptureSid
See issue #7138 for more details.
Modified:
trunk/reactos/ntoskrnl/se/acl.c
trunk/reactos/ntoskrnl/se/sid.c
Modified: trunk/reactos/ntoskrnl/se/acl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/acl.c?rev=5680…
==============================================================================
--- trunk/reactos/ntoskrnl/se/acl.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/se/acl.c [iso-8859-1] Tue Jun 26 07:21:45 2012
@@ -296,8 +296,9 @@
}
_SEH2_END;
- NewAcl = ExAllocatePool(PoolType,
- AclSize);
+ NewAcl = ExAllocatePoolWithTag(PoolType,
+ AclSize,
+ TAG_ACL);
if (NewAcl != NULL)
{
_SEH2_TRY
@@ -329,8 +330,9 @@
{
AclSize = InputAcl->AclSize;
- NewAcl = ExAllocatePool(PoolType,
- AclSize);
+ NewAcl = ExAllocatePoolWithTag(PoolType,
+ AclSize,
+ TAG_ACL);
if (NewAcl != NULL)
{
Modified: trunk/reactos/ntoskrnl/se/sid.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/sid.c?rev=5680…
==============================================================================
--- trunk/reactos/ntoskrnl/se/sid.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/se/sid.c [iso-8859-1] Tue Jun 26 07:21:45 2012
@@ -285,7 +285,7 @@
_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 @@
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;