nima / python-dmidecode

Python DMI-Decode
39 stars 27 forks source link

Fix reading info permission deny bugs. #39

Closed HuO50 closed 2 years ago

HuO50 commented 2 years ago

Details:

  1. Change default /dev/mem to sysfs tables, if /dev/mem is unavailable, use sysfs tables instead.
  2. Modify init method from dmidecodemodule.
  3. Add read_file function instead memchunk.
  4. Add SM3 reading function and get version function.
  5. Test physical machine and KVM machine
lian-bo commented 2 years ago

Hi, Zhongze Thank you for the update. But, this patch is still problematic. Can you check it again carefully? Thanks.