Skip to content
Snippets Groups Projects
Commit da6e0259 authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Joel Holdsworth
Browse files

server: Allow access with PROCESS_QUERY_INFORMATION.

0128:fixme:sync:QueryUnbiasedInterruptTimePrecise (000000000031BB50): semi-stub.
      0 [main] gpg 1017 fixup_mmaps_after_fork: VirtualQueryEx failed for MAP_PRIVATE address 0x7FFC0000, Win32 error 5
  15823 [main] gpg 1017 C:\msys64\usr\bin\gpg.exe: *** fatal error in forked process - recreate_mmaps_after_fork_failed
0128:trace:unixpid:NtTerminateProcess unixpid=120034 L"\"C:\\msys64\\usr\\bin\\gpg.exe\" --homedir /etc/pacman.d/gnupg/ --no-permission-warning -K --with-colons" self=1 NtCurrentTeb()=0x67fe0000 NtCurrentTeb()->Peb=0x67ff0000 :999
8064141 [main] gpg 1016 dofork: child -1 - forked process 292 died unexpectedly, retry 0, exit code 0x100, errno 11
00d4:fixme:virtual:get_extended_params Not supported requirements LowestStartingAddress 0x1000000000, Alignment (nil).
gpg: Fehler beim "Forken" des Prozess: Resource temporarily unavailable
gpg: failed to start agent '/usr/bin/gpg-agent': Resource temporarily unavailable
gpg: can't connect to the agent: Resource temporarily unavailable
gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.
gpg: migration aborted
00d4:trace:unixpid:NtTerminateProcess unixpid=120008 L"\"C:\\msys64\\usr\\bin\\gpg.exe\" --homedir /etc/pacman.d/gnupg/ --no-permission-warning -K --with-colons" self=1 NtCurrentTeb()=0x67fe0000 NtCurrentTeb()->Peb=0x67ff0000 :999
parent ae7415fa
Branches
No related tags found
No related merge requests found
......@@ -477,6 +477,13 @@ struct object *get_handle_obj( struct process *process, obj_handle_t handle,
set_error( STATUS_OBJECT_TYPE_MISMATCH ); /* not the right type */
return NULL;
}
if ((access & PROCESS_QUERY_INFORMATION) &&
!(entry->access & PROCESS_QUERY_INFORMATION) &&
(entry->access & PROCESS_QUERY_LIMITED_INFORMATION))
{
access &= ~PROCESS_QUERY_INFORMATION;
access |= PROCESS_QUERY_LIMITED_INFORMATION;
}
if ((entry->access & access) != access)
{
set_error( STATUS_ACCESS_DENIED );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment