mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
[NTOS:SE] Don't assert on levels that don't allow impersonation.
This commit is contained in:
parent
3e5dcf7937
commit
88e3ef5fa0
1 changed files with 6 additions and 4 deletions
|
@ -3582,11 +3582,13 @@ SeTokenCanImpersonate(
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SecurityAnonymous and SecurityIdentification levels do not
|
* SecurityAnonymous and SecurityIdentification levels do not
|
||||||
* allow impersonation. If we get such levels from the call
|
* allow impersonation.
|
||||||
* then something's seriously wrong.
|
|
||||||
*/
|
*/
|
||||||
ASSERT(ImpersonationLevel != SecurityAnonymous &&
|
if (ImpersonationLevel == SecurityAnonymous ||
|
||||||
ImpersonationLevel != SecurityIdentification);
|
ImpersonationLevel == SecurityIdentification)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Time to lock our tokens */
|
/* Time to lock our tokens */
|
||||||
SepAcquireTokenLockShared(ProcessToken);
|
SepAcquireTokenLockShared(ProcessToken);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue