mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
Cygwin: proc: don't request PROCESS_VM_READ perms for stat
The OpenProcess call to generate /proc/<PID>/stat info requests PROCESS_VM_READ, but that's not required. Drop it. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
048f28bfe4
commit
4ce7e1bbaa
@ -1097,7 +1097,7 @@ format_process_stat (void *data, char *&destbuf)
|
||||
QUOTA_LIMITS ql;
|
||||
SYSTEM_TIMEOFDAY_INFORMATION stodi;
|
||||
SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION spt;
|
||||
hProcess = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ,
|
||||
hProcess = OpenProcess (PROCESS_QUERY_LIMITED_INFORMATION,
|
||||
FALSE, p->dwProcessId);
|
||||
if (hProcess == NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user