* external.cc (cygwin_internal): Add CW_GET_POSIX_SECURITY_ATTRIBUTE

handling.
	* include/cygwin/version.h: Bump API minor number.
	* include/sys/cygwin.h (cygwin_getinfo_types): Add
	CW_GET_POSIX_SECURITY_ATTRIBUTE.

	* exceptions.cc (init_global_security): Move from here...
	* sec_helper.cc (init_global_security): ...to here.
This commit is contained in:
Corinna Vinschen
2003-11-04 15:48:19 +00:00
parent c35391d0d2
commit bcd06214e1
6 changed files with 42 additions and 16 deletions

View File

@@ -371,6 +371,24 @@ get_null_sd ()
return null_sdp;
}
/*
* Initialize global security attributes.
*
* Called from dcrt0.cc (_dll_crt0).
*/
void
init_global_security ()
{
sec_none.nLength = sec_none_nih.nLength =
sec_all.nLength = sec_all_nih.nLength = sizeof (SECURITY_ATTRIBUTES);
sec_none.bInheritHandle = sec_all.bInheritHandle = TRUE;
sec_none_nih.bInheritHandle = sec_all_nih.bInheritHandle = FALSE;
sec_none.lpSecurityDescriptor = sec_none_nih.lpSecurityDescriptor = NULL;
sec_all.lpSecurityDescriptor = sec_all_nih.lpSecurityDescriptor =
get_null_sd ();
}
BOOL
sec_acl (PACL acl, bool original, bool admins, PSID sid1, PSID sid2, DWORD access2)
{