This is the mail archive of the
mailing list for the Cygwin project.
Re: /dev/mem: permission denied
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 8 Apr 2008 10:27:17 +0200
- Subject: Re: /dev/mem: permission denied
- References: <47FB28E6.email@example.com>
- Reply-to: cygwin at cygwin dot com
On Apr 8 10:12, Tomasz Chmielewski wrote:
> I just compiled dmidecode with the latest stable version of cygwin.
> The binary works fine on XP, but on Windows 2003, it throws a permission
> denied error on accessing /dev/mem.
> I searched the Cygwin list and found this message:
> Accessing \device\physicalmemory from privileged
> user mode processes works only on NT4, W2K and XP. Starting with 2K3,
> access to physical memory has been restricted to work only in kernel
> On the other hand, a patched version of dmidecode (not needing Cygwin
> DLL) works just fine on Windows 2003.
Yes, but it doesn't access \Device\Physicalmemory. It uses the new
function GetSystemFirmwareTable, only available since Windows 2003,
which only gives read access to certain firmware areas in the
> Is there a workaround for /dev/mem: permission denied problem in Cygwin?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html