Cygwin: fork: fix child process permissions, take 2
VirtualQueryEx, called by fixup_mmaps_after_fork, requires PROCESS_QUERY_INFORMATION permissions per MSDN. However, testing shows that PROCESS_QUERY_LIMITED_INFORMATION is sufficient when running the same code on Windows 8.1 or Windows 10. Fix the code to give the forked child always PROCESS_QUERY_INFORMATION perms on Windows Vista/7 and respective server releases. Revert now unneeded patch to check_token_membership as well. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		| @@ -17,7 +17,6 @@ details. */ | ||||
|  | ||||
| /* UID/GID */ | ||||
| void uinfo_init (); | ||||
| bool check_token_membership (HANDLE, PSID); | ||||
| bool check_token_membership (PSID); | ||||
|  | ||||
| #define ILLEGAL_UID ((uid_t)-1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user