* sec_auth.cc (lsaauth): Make returned token inheritable.
This commit is contained in:
parent
be5937cd97
commit
93e9098f7c
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue