]> sourceware.org Git - newlib-cygwin.git/commitdiff
* sec_auth.cc (lsaauth): Make returned token inheritable.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 10 Jun 2008 15:16:01 +0000 (15:16 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 10 Jun 2008 15:16:01 +0000 (15:16 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/sec_auth.cc

index 36e6d8494c1bfee24bf15e573671d78d177a55b6..38e81276a8b3c8fc69a55021ac09652784b6ecac 100644 (file)
@@ -1,3 +1,7 @@
+2008-06-10  Corinna Vinschen  <corinna@vinschen.de>
+
+       * sec_auth.cc (lsaauth): Make returned token inheritable.
+
 2008-06-10  Corinna Vinschen  <corinna@vinschen.de>
 
        * devices.cc: Regenerate.
index 8ae2424c3e703358e32e2a448b41658cddbcd585..dca2e18c87c71d380a20290eb8f61e25d7b7ff31 100644 (file)
@@ -1118,6 +1118,11 @@ lsaauth (cygsid &usersid, user_groups &new_groups, struct passwd *pw)
        }
     }
 
+  /* The token returned by LsaLogonUser is not inheritable.  Make it so. */
+  if (!SetHandleInformation (user_token, HANDLE_FLAG_INHERIT,
+                            HANDLE_FLAG_INHERIT))
+    system_printf ("SetHandleInformation %E");
+
 out:
   if (privs)
     free (privs);
This page took 0.031774 seconds and 5 git commands to generate.