server: Require FILE_READ_ATTRIBUTES access in get_named_pipe_info.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-08-20 19:29:56 +02:00 committed by Alexandre Julliard
parent 58233b47e0
commit d4e0f0a12f
2 changed files with 5 additions and 3 deletions

View File

@ -756,16 +756,18 @@ static void test_filepipeinfo(void)
res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info),
FilePipeLocalInformation);
todo_wine
ok(res == STATUS_ACCESS_DENIED,
"NtQueryInformationFile(FilePipeLocalInformation) returned: %x\n", res);
res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info),
FilePipeInformation);
todo_wine
ok(res == STATUS_ACCESS_DENIED,
"NtQueryInformationFile(FilePipeInformation) returned: %x\n", res);
res = pNtQueryInformationFile(hClient, &iosb, &local_info, sizeof(local_info),
FileNameInformation);
ok(res == STATUS_SUCCESS, "NtQueryInformationFile(FileNameInformation) returned: %x\n", res);
CloseHandle(hClient);
CloseHandle(hServer);
}

View File

@ -1284,7 +1284,7 @@ DECL_HANDLER(get_named_pipe_info)
clear_error();
pipe_end = (struct pipe_end *)get_handle_obj( current->process, req->handle,
0, &pipe_client_ops );
FILE_READ_ATTRIBUTES, &pipe_client_ops );
if (!pipe_end) return;
}