Skip to content

Commit

Permalink
server: Allow access with PROCESS_QUERY_INFORMATION.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bernhardu authored and jeremyd2019 committed Jun 17, 2024
1 parent ca08a33 commit 5446aea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,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 );
Expand Down

0 comments on commit 5446aea

Please sign in to comment.