Corinna Vinschen 0191627a26 * include/sys/cygwin.h: Add new cygwin_getinfo_type
CW_SET_EXTERNAL_TOKEN.
	Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED.
	* cygheap.h (cyguser): New flags ext_token_is_restricted,
	curr_token_is_restricted and setuid_to_restricted.
	* external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN.
	* sec_auth.cc (set_imp_token): New function.
	(cygwin_set_impersonation_token): Call set_imp_token ().
	* security.h (set_imp_token): New prototype.
	* spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token
	was enabled by setuid().  Do not create new window station in this case.
	* syscalls.cc (seteuid32): Add handling of restricted external tokens.
	Set HANDLE_FLAG_INHERIT for primary token.
	(setuid32): Set setuid_to_restricted flag.
	* uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was
	enabled by setuid ().  Initialize user.*_restricted flags.
2009-10-13 10:23:31 +00:00
..
2009-10-07 15:47:38 +00:00
2009-01-21 17:14:39 +00:00
2006-05-24 16:59:03 +00:00
2006-03-01 20:20:22 +00:00
2009-09-22 14:27:57 +00:00
2009-09-22 02:49:15 +00:00
2007-01-03 11:14:53 +00:00
2009-09-22 02:49:15 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2009-08-01 19:52:46 +00:00
2009-07-07 20:12:44 +00:00
2009-09-26 21:01:10 +00:00
2009-08-21 21:32:06 +00:00
2009-09-26 21:01:10 +00:00
2006-03-01 20:20:22 +00:00
2009-01-21 17:14:39 +00:00
2008-11-26 17:21:04 +00:00
2008-05-20 15:11:23 +00:00
2009-10-07 15:47:38 +00:00
2009-10-07 15:47:38 +00:00
2009-09-26 21:01:10 +00:00
2009-10-07 15:47:38 +00:00
2008-04-01 13:22:47 +00:00
2009-01-21 17:14:39 +00:00
2009-01-21 17:14:39 +00:00
2009-10-07 15:47:38 +00:00
2008-05-22 01:25:37 +00:00
2009-07-03 18:05:51 +00:00
2009-07-03 18:05:51 +00:00
2009-08-01 19:52:46 +00:00
2009-08-01 19:52:46 +00:00
2006-07-17 19:30:30 +00:00
2009-02-19 16:12:02 +00:00