mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[NTOSKRNL] On process primary token change, dereference device map
This commit is contained in:
parent
f8c51ecdd7
commit
f8a4d31da4
1 changed files with 8 additions and 0 deletions
|
@ -325,6 +325,14 @@ PspSetPrimaryToken(IN PEPROCESS Process,
|
|||
STANDARD_RIGHTS_ALL |
|
||||
PROCESS_SET_QUOTA);
|
||||
}
|
||||
|
||||
/*
|
||||
* In case LUID device maps are enable, we may not be using
|
||||
* system device map for this process, but a logon LUID based
|
||||
* device map. Because we change primary token, this usage is
|
||||
* no longer valid, so dereference the process device map
|
||||
*/
|
||||
if (ObIsLUIDDeviceMapsEnabled()) ObDereferenceDeviceMap(Process);
|
||||
}
|
||||
|
||||
/* Dereference the token */
|
||||
|
|
Loading…
Reference in a new issue