summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2003-09-10 02:12:26 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2003-09-10 02:12:26 +0000
commit7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a (patch)
treee4fc18abafcb54f10c1ce52cb71947c5cca4e3c3 /winsup/cygwin/spawn.cc
parent3a767b69fdb767a7a154a4840dfcf06ce5c5c48b (diff)
downloadcygnal-7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a.tar.gz
cygnal-7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a.tar.bz2
cygnal-7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a.zip
2003-09-09 Pierre Humblet <pierre.humblet@ieee.org>
* 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.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index be469ef21..7b05a5c65 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -654,9 +654,6 @@ spawn_guts (const char * prog_arg, const char *const *argv,
/* Set security attributes with sid */
PSECURITY_ATTRIBUTES sec_attribs = sec_user_nih (sa_buf, sid);
- /* Load users registry hive. */
- load_registry_hive (sid);
-
/* allow the child to interact with our window station/desktop */
HANDLE hwst, hdsk;
SECURITY_INFORMATION dsi = DACL_SECURITY_INFORMATION;