mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
[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:
parent
0b3f274e0e
commit
f7a609c7fc
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue