This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

src/winsup/cygwin ChangeLog autoload.cc ntdll. ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	corinna@sources.redhat.com	2001-05-20 01:10:47

Modified files:
	winsup/cygwin  : ChangeLog autoload.cc ntdll.h sec_helper.cc 
	                 security.cc security.h spawn.cc syscalls.cc 
	                 uinfo.cc 

Log message:
	* autoload.cc: Add load statements for `LookupAccountNameW',
	`LsaClose', `LsaEnumerateAccountRights', `LsaFreeMemory',
	`LsaOpenPolicy', `LsaQueryInformationPolicy', `NetLocalGroupEnum',
	`NetLocalGroupGetMembers', `NetServerEnum', `NetUserGetGroups' and
	`NtCreateToken'.
	* ntdll.h: Add declaration for `NtCreateToken'.
	* sec_helper.cc: Add `well_known_local_sid', `well_known_dialup_sid',
	`well_known_network_sid', `well_known_batch_sid',
	`well_known_interactive_sid', `well_known_service_sid' and
	`well_known_authenticated_users_sid'.
	(cygsid::string): Define as const method.
	(cygsid::get_sid): Set psid to NO_SID on error.
	(cygsid::getfromstr): Ditto.
	(cygsid::getfrompw): Simplify.
	(cygsid::getfromgr): Check for gr == NULL.
	(legal_sid_type): Move to security.h.
	(set_process_privilege): Return -1 on error, otherwise 0 or 1 related
	to previous privilege setting.
	* security.cc (extract_nt_dom_user): Remove `static'.
	(lsa2wchar): New function.
	(open_local_policy): Ditto.
	(close_local_policy): Ditto.
	(get_lsa_srv_inf): Ditto.
	(get_logon_server): Ditto.
	(get_logon_server_and_user_domain): Ditto.
	(get_user_groups): Ditto.
	(is_group_member): Ditto.
	(get_user_local_groups): Ditto.
	(sid_in_token_groups): Ditto.
	(get_user_primary_group): Ditto.
	(get_group_sidlist): Ditto.
	(get_system_priv_list): Ditto.
	(get_priv_list): Ditto.
	(get_dacl): Ditto.
	(create_token): Ditto.
	(subauth): Return immediately if SE_TCB_NAME can't be assigned.
	Change all return statements in case of error to jumps to `out'
	label. Add `out' label to support cleanup.
	* security.h: Add extern declarations for `well_known_local_sid',
	`well_known_dialup_sid', `well_known_network_sid',
	`well_known_batch_sid', `well_known_interactive_sid',
	`well_known_service_sid' and `well_known_authenticated_users_sid'.
	Add extern declarations for functions `create_token',
	`extract_nt_dom_user' and `get_logon_server_and_user_domain'.
	(class cygsid): Add method `assign'. Change operator= to call new
	`assign' method. Add `debug_print' method.
	(class cygsidlist): New class.
	(legal_sid_type): Moved from sec_helper.cc to here.
	* spawn.cc (spawn_guts) Revert reversion of previous patch.
	Call `RevertToSelf' and `ImpersonateLoggedOnUser' instead of `seteuid'
	again.
	* syscalls.cc (seteuid): Rearranged. Call `create_token' now when
	needed. Call `subauth' if `create_token' fails. Try setting token
	owner and primary group only if token was not explicitely created
	by `create_token'.
	* uinfo.cc (internal_getlogin): Try harder to generate correct user
	information. Especially don't trust return value of `GetUserName'.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.723&r2=1.724
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/autoload.cc.diff?cvsroot=src&r1=1.24&r2=1.25
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ntdll.h.diff?cvsroot=src&r1=1.4&r2=1.5
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sec_helper.cc.diff?cvsroot=src&r1=1.6&r2=1.7
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.cc.diff?cvsroot=src&r1=1.50&r2=1.51
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.h.diff?cvsroot=src&r1=1.8&r2=1.9
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/spawn.cc.diff?cvsroot=src&r1=1.76&r2=1.77
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/syscalls.cc.diff?cvsroot=src&r1=1.113&r2=1.114
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/uinfo.cc.diff?cvsroot=src&r1=1.39&r2=1.40


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]