* sec_auth.cc (lsaauth): Make returned token inheritable.

This commit is contained in:
Corinna Vinschen
2008-06-10 15:16:01 +00:00
parent be5937cd97
commit 93e9098f7c
2 changed files with 9 additions and 0 deletions

View 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);