aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/wincap.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-01-29 16:26:45 +0100
committerCorinna Vinschen <corinna@vinschen.de>2019-01-29 17:59:23 +0100
commit5a0f2c00aa019de73a6077ca3017b594c43184a4 (patch)
tree512ef8f7e516664c96c57ac306d8f7ae0af6dd53 /winsup/cygwin/wincap.h
parentc86b2f549bd099fdb56834d28a8103e8b9814e32 (diff)
downloadnewlib-5a0f2c00aa019de73a6077ca3017b594c43184a4.zip
newlib-5a0f2c00aa019de73a6077ca3017b594c43184a4.tar.gz
newlib-5a0f2c00aa019de73a6077ca3017b594c43184a4.tar.bz2
Cygwin: fork/exec: fix child process permissions
- Exec'ed/spawned processes don't need PROCESS_DUP_HANDLE. Remove that permission from the parent handle. - PROCESS_QUERY_LIMITED_INFORMATION doesn't work for Windows 7 if the process is started as a service. Add PROCESS_QUERY_INFORMATION for pre-Windows 8 in that case. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r--winsup/cygwin/wincap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h
index f8846f9..75b7a9f 100644
--- a/winsup/cygwin/wincap.h
+++ b/winsup/cygwin/wincap.h
@@ -17,6 +17,7 @@ struct wincaps
struct __attribute__ ((aligned (8))) {
unsigned is_server : 1;
unsigned needs_count_in_si_lpres2 : 1;
+ unsigned needs_query_information : 1;
unsigned has_gaa_largeaddress_bug : 1;
unsigned has_broken_alloc_console : 1;
unsigned has_console_logon_sid : 1;
@@ -70,6 +71,7 @@ public:
}
bool IMPLEMENT (is_server)
bool IMPLEMENT (needs_count_in_si_lpres2)
+ bool IMPLEMENT (needs_query_information)
bool IMPLEMENT (has_gaa_largeaddress_bug)
bool IMPLEMENT (has_broken_alloc_console)
bool IMPLEMENT (has_console_logon_sid)