[NTOS/SE]
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 13 Oct 2014 18:47:44 +0000 (18:47 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Mon, 13 Oct 2014 18:47:44 +0000 (18:47 +0000)
 - Use the authentication ID to determine if a token represents a child of the current process.
CORE-8631 #resolve #comment the installer now works fine, but chrome fails to start

svn path=/trunk/; revision=64735

reactos/ntoskrnl/se/token.c

index 4acfb34..1e56e9e 100644 (file)
@@ -571,13 +571,13 @@ SeIsTokenChild(IN PTOKEN Token,
     ProcessToken = PsReferencePrimaryToken(PsGetCurrentProcess());
 
     /* Get the ID */
     ProcessToken = PsReferencePrimaryToken(PsGetCurrentProcess());
 
     /* Get the ID */
-    ProcessLuid = ProcessToken->TokenId;
+    ProcessLuid = ProcessToken->AuthenticationId;
 
     /* Dereference the token */
     ObFastDereferenceObject(&PsGetCurrentProcess()->Token, ProcessToken);
 
     /* Get our LUID */
 
     /* Dereference the token */
     ObFastDereferenceObject(&PsGetCurrentProcess()->Token, ProcessToken);
 
     /* Get our LUID */
-    CallerLuid = Token->TokenId;
+    CallerLuid = Token->AuthenticationId;
 
     /* Compare the LUIDs */
     if (RtlEqualLuid(&CallerLuid, &ProcessLuid)) *IsChild = TRUE;
 
     /* Compare the LUIDs */
     if (RtlEqualLuid(&CallerLuid, &ProcessLuid)) *IsChild = TRUE;