mirror / dmidecode

dmidecode mirror
GNU General Public License v2.0
121 stars 72 forks source link

Root user cannot decode SMBIOS tables from local file #26

Open honggli opened 7 months ago

honggli commented 7 months ago

If I run dmidecode command as root user to decode SMBIOS tables from raw data I dump before, it failed.

./dmidecode --from-dump ~/dmidecode.bin
# dmidecode 3.5
Reading SMBIOS/DMI data from file /root/dmidecode.bin.
Can't read memory from /root/dmidecode.bin

It seemed root user could use /dev/mem only, while non-root user could decode SMBIOS tables from local file. This restriction seems not necessary, especially for some systems we only have root user.

loganfin commented 3 weeks ago

This was fixed in version 3.6. It doesn't seem like it will be backported to version 3.5 considering the change occurred 1.5 years ago.