OpenVZ Forum


Home » General » Support » Access to /sys/class/dmi/id/* from VE
Access to /sys/class/dmi/id/* from VE [message #37427] Tue, 08 September 2009 22:31 Go to previous message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
I would like to access the dmi values /sys/class/dmi/id/* of the hardware host inside the VE's.
E.g.
/sys/class/dmi/id/product_serial
/sys/class/dmi/id/product_uuid

I can achieve it using dmidecode(1) after applying
DEVNODES="mem:r "
CAPABILITY="SYS_RAWIO:on "

but I prefer the simple /sys/class interface because of security issues and because dmidecode can be spoofed.

I have looked at the kernel sources and thought it would an easy task but found the code too generic for me.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: chkpnt: Error: d_path is invisible /var/lock
Next Topic: I figured it out.
Goto Forum:
  


Current Time: Thu Aug 22 07:35:08 GMT 2024

Total time taken to generate the page: 0.02947 seconds