* dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, after

initializing hProcToken.
	* sec_helper.cc (init_global_security): Don't call set_cygwin_privileges        here.
This commit is contained in:
Corinna Vinschen 2007-07-19 07:24:17 +00:00
parent 391b530a05
commit 5fbf573cd3
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-07-19 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, after
initializing hProcToken.
* sec_helper.cc (init_global_security): Don't call set_cygwin_privileges here.
2007-07-18 Corinna Vinschen <corinna@vinschen.de>
* cygheap.h (shared_prefix): De-const.

View File

@ -734,7 +734,9 @@ dll_crt0_0 ()
DuplicateHandle (hMainProc, GetCurrentThread (), hMainProc,
&hMainThread, 0, false, DUPLICATE_SAME_ACCESS);
OpenProcessToken (hMainProc, MAXIMUM_ALLOWED, &hProcToken);
set_cygwin_privileges (hProcToken);
device::init ();
do_global_ctors (&__CTOR_LIST__, 1);

View File

@ -530,8 +530,6 @@ init_global_security ()
sec_none.lpSecurityDescriptor = sec_none_nih.lpSecurityDescriptor = NULL;
sec_all.lpSecurityDescriptor = sec_all_nih.lpSecurityDescriptor =
get_null_sd ();
set_cygwin_privileges (hProcToken);
}
bool