Commit 1d2241ec authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

server: For querying process information demand PROCESS_QUERY_LIMITED_INFORMATION access.

parent 93e8bea2
......@@ -2901,13 +2901,8 @@ static void test_process_info(void)
case ProcessTimes:
case ProcessPriorityClass:
case ProcessPriorityBoost:
case ProcessImageFileName:
case ProcessLUIDDeviceMapsEnabled:
case 33 /* ProcessIoPriority */:
todo_wine
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break;
case ProcessIoCounters:
case ProcessVmCounters:
case ProcessWow64Information:
......@@ -2916,6 +2911,11 @@ todo_wine
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break;
case ProcessImageFileName:
todo_wine
ok(status == STATUS_SUCCESS, "for info %u expected STATUS_SUCCESS, got %08x (ret_len %u)\n", i, status, ret_len);
break;
case ProcessAffinityMask:
case ProcessBreakOnTermination:
ok(status == STATUS_ACCESS_DENIED /* before win8 */ || status == STATUS_SUCCESS /* win8 is less strict */,
......@@ -2928,6 +2928,8 @@ todo_wine
break;
case ProcessExecuteFlags:
case ProcessDebugPort:
case ProcessDebugFlags:
todo_wine
ok(status == STATUS_ACCESS_DENIED, "for info %u expected STATUS_ACCESS_DENIED, got %08x (ret_len %u)\n", i, status, ret_len);
break;
......
......@@ -1343,7 +1343,7 @@ DECL_HANDLER(get_process_info)
{
struct process *process;
if ((process = get_process_from_handle( req->handle, PROCESS_QUERY_INFORMATION )))
if ((process = get_process_from_handle( req->handle, PROCESS_QUERY_LIMITED_INFORMATION )))
{
reply->pid = get_process_id( process );
reply->ppid = process->parent ? get_process_id( process->parent ) : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment