From 7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a Mon Sep 17 00:00:00 2001 From: Pierre Humblet Date: Wed, 10 Sep 2003 02:12:26 +0000 Subject: 2003-09-09 Pierre Humblet * shared_info.h: Include security.h. (open_shared): Add psa argument. (user_shared_initialize): New declaration. * security.h: Add _SECURITY_H guard. (sec_user): Use sec_none in the no ntsec case. * spawn.cc (spawn_guts): Remove call to load_registry_hive. * syscalls (seteuid32): If warranted, call load_registry_hive, user_shared_initialize and RegCloseKey(HKEY_CURRENT_USER). * shared.cc (user_shared_initialize): New. (open_shared): Add and use psa argument. (memory_init): Move mount table initialization to user_shared_initialize. Call it. --- winsup/cygwin/shared_info.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/shared_info.h') diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h index d73d0b078..eb1ae7164 100644 --- a/winsup/cygwin/shared_info.h +++ b/winsup/cygwin/shared_info.h @@ -9,6 +9,7 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include "tty.h" +#include "security.h" /* Mount table entry */ @@ -189,4 +190,7 @@ struct console_state #endif char *__stdcall shared_name (char *, const char *, int); -void *__stdcall open_shared (const char *name, int n, HANDLE &shared_h, DWORD size, shared_locations); +void *__stdcall open_shared (const char *name, int n, HANDLE &shared_h, DWORD size, + shared_locations, PSECURITY_ATTRIBUTES psa = &sec_all); +extern void user_shared_initialize (); + -- cgit v1.2.3