* security.h (pop_thread_privilege): Revert to previous state, not
to token used for impersonation.
This commit is contained in:
parent
a0e1630add
commit
fd1bf882f5
@ -1,3 +1,8 @@
|
|||||||
|
2007-01-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* security.h (pop_thread_privilege): Revert to previous state, not
|
||||||
|
to token used for impersonation.
|
||||||
|
|
||||||
2007-01-24 Corinna Vinschen <corinna@vinschen.de>
|
2007-01-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.
|
* cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.
|
||||||
|
@ -408,10 +408,10 @@ void set_cygwin_privileges (HANDLE token);
|
|||||||
#define pop_thread_privilege() \
|
#define pop_thread_privilege() \
|
||||||
if (_dup_token) \
|
if (_dup_token) \
|
||||||
{ \
|
{ \
|
||||||
if (_token == hProcToken) \
|
if (!cygheap->user.issetuid ()) \
|
||||||
RevertToSelf (); \
|
RevertToSelf (); \
|
||||||
else \
|
else \
|
||||||
ImpersonateLoggedOnUser (_token); \
|
cygheap->user.reimpersonate (); \
|
||||||
CloseHandle (_dup_token); \
|
CloseHandle (_dup_token); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user