[NTOSKRNL]

In ObpCheckTraverseAccess() first try to perform a fast traverse check
before doing the entire access check.

svn path=/trunk/; revision=58239
This commit is contained in:
Pierre Schweitzer 2013-01-27 09:50:20 +00:00
parent 0b3f274e0e
commit f7a609c7fc

View file

@ -301,6 +301,20 @@ ObpCheckTraverseAccess(IN PVOID Object,
return FALSE;
}
/* First try to perform a fast traverse check
* If it fails, then the entire access check will
* have to be done.
*/
Result = SeFastTraverseCheck(SecurityDescriptor,
AccessState,
FILE_WRITE_DATA,
AccessMode);
if (Result)
{
ObReleaseObjectSecurity(SecurityDescriptor, SdAllocated);
return TRUE;
}
/* Lock the security context */
SeLockSubjectContext(&AccessState->SubjectSecurityContext);