* sec_helper.cc (get_null_sd): Make static. Use PSECURITY_DESCRIPTOR
instead of SECURITY_DESCRIPTOR *. (sec_acl): Fix fomratting. * security.h (get_null_sd): Drop declaration.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | ||||
| 2010-04-17  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* sec_helper.cc (get_null_sd): Make static.  Use PSECURITY_DESCRIPTOR | ||||
| 	instead of SECURITY_DESCRIPTOR *. | ||||
| 	(sec_acl): Fix fomratting. | ||||
| 	* security.h (get_null_sd): Drop declaration. | ||||
|  | ||||
| 2010-04-16  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* cygerrno.h (seterrno_from_nt_status): Declare. | ||||
|   | ||||
| @@ -444,17 +444,16 @@ set_cygwin_privileges (HANDLE token) | ||||
| /* Function to return a common SECURITY_DESCRIPTOR that | ||||
|    allows all access.  */ | ||||
|  | ||||
|  | ||||
| SECURITY_DESCRIPTOR *__stdcall | ||||
| static inline PSECURITY_DESCRIPTOR | ||||
| get_null_sd () | ||||
| { | ||||
|   static NO_COPY SECURITY_DESCRIPTOR sd; | ||||
|   static NO_COPY SECURITY_DESCRIPTOR *null_sdp; | ||||
|   static NO_COPY PSECURITY_DESCRIPTOR null_sdp; | ||||
|  | ||||
|   if (!null_sdp) | ||||
|     { | ||||
|       InitializeSecurityDescriptor (&sd, SECURITY_DESCRIPTOR_REVISION); | ||||
|       SetSecurityDescriptorDacl (&sd, TRUE, 0, FALSE); | ||||
|       SetSecurityDescriptorDacl (&sd, TRUE, NULL, FALSE); | ||||
|       null_sdp = &sd; | ||||
|     } | ||||
|   return null_sdp; | ||||
|   | ||||
| @@ -427,8 +427,6 @@ void set_cygwin_privileges (HANDLE token); | ||||
| #define pop_self_privilege()		   pop_thread_privilege() | ||||
|  | ||||
| /* shared.cc: */ | ||||
| /* Retrieve a security descriptor that allows all access */ | ||||
| SECURITY_DESCRIPTOR *__stdcall get_null_sd (); | ||||
|  | ||||
| /* Various types of security attributes for use in Create* functions. */ | ||||
| extern SECURITY_ATTRIBUTES sec_none, sec_none_nih, sec_all, sec_all_nih; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user