Dmitry Timoshkov : server: Add implicit PROCESS_[QUERY|SET] _LIMITED_INFORMATION access.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 21 09:07:17 CDT 2015


Module: wine
Branch: master
Commit: c19091272d98600de346c516301dd41c2e0a57d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c19091272d98600de346c516301dd41c2e0a57d7

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Aug 21 12:14:09 2015 +0800

server: Add implicit PROCESS_[QUERY|SET]_LIMITED_INFORMATION access.

---

 server/process.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/process.c b/server/process.c
index 7252497..a02493a 100644
--- a/server/process.c
+++ b/server/process.c
@@ -651,6 +651,10 @@ static unsigned int process_map_access( struct object *obj, unsigned int access
                                             PROCESS_VM_WRITE | PROCESS_DUP_HANDLE | PROCESS_CREATE_PROCESS | PROCESS_CREATE_THREAD | PROCESS_VM_OPERATION;
     if (access & GENERIC_EXECUTE) access |= STANDARD_RIGHTS_EXECUTE | SYNCHRONIZE | PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_TERMINATE;
     if (access & GENERIC_ALL)     access |= PROCESS_ALL_ACCESS;
+
+    if (access & PROCESS_QUERY_INFORMATION) access |= PROCESS_QUERY_LIMITED_INFORMATION;
+    if (access & PROCESS_SET_INFORMATION) access |= PROCESS_SET_LIMITED_INFORMATION;
+
     return access & ~(GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE | GENERIC_ALL);
 }
 




More information about the wine-cvs mailing list