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

This commit is contained in:
Dmitry Timoshkov 2015-08-21 12:14:09 +08:00 committed by Alexandre Julliard
parent 63f3a70d56
commit c19091272d
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}