diff options
author | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2003-09-10 02:12:26 +0000 |
---|---|---|
committer | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2003-09-10 02:12:26 +0000 |
commit | 7119fc0d0b59a8fe8e5a6f25dd3b8162a8b8337a (patch) | |
tree | e4fc18abafcb54f10c1ce52cb71947c5cca4e3c3 /winsup/cygwin/security.h | |
parent | 3a767b69fdb767a7a154a4840dfcf06ce5c5c48b (diff) | |
download | cygnal-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/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index 71ffe4cec..0112341a3 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -8,6 +8,9 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +#ifndef _SECURITY_H +#define _SECURITY_H + #include <accctrl.h> #define DEFAULT_UID DOMAIN_USER_RID_ADMIN @@ -271,5 +274,6 @@ sec_user_nih (char sa_buf[], PSID sid = NULL) extern inline SECURITY_ATTRIBUTES * sec_user (char sa_buf[], PSID sid = NULL) { - return allow_ntsec ? __sec_user (sa_buf, sid, TRUE) : &sec_none_nih; + return allow_ntsec ? __sec_user (sa_buf, sid, TRUE) : &sec_none; } +#endif /*_SECURITY_H*/ |