src/winsup/cygwin ChangeLog cygheap.h ...
Tue Dec 12 16:27:00 GMT 2006

CVSROOT:	/cvs/src
Module name:	src
Changes by:	2006-12-12 16:27:32

Modified files:
	winsup/cygwin  : ChangeLog cygheap.h 

Log message:
	Partially revert change from 2005-04-03, always running under an
	impersonation token, which collides with Vista UAC.
	* cygheap.h (deimpersonate): revert to self instead of impersonating
	(reimpersonate): Only impersonate if setuid.
	* (dll_crt0_0): Don't initialize hProcImpToken here.
	(dll_crt0_1): Set privileges on hProcToken.
	* (frok::child): Set privileges on hProcToken.  Close handle to
	* (internal_getgroups): Use hProcToken instead of hProcImpToken.
	* (check_access): Create hProcImpToken on demand here.
	* security.h (set_process_privilege): Set privileges on hProcToken.
	(_push_thread_privilege): Use hProcToken instead of hProcImpToken.
	(pop_thread_privilege): If not setuid'ed, revert to self.
	* (setegid32): Drop setting primary group on hProcImpToken.
	Close handle to hProcImpToken.
	* (internal_getlogin): Ditto.
	* winsup.h (clear_procimptoken): New inline function.


More information about the Cygwin-cvs mailing list