Access to /sys/class/dmi/id/* from VE [message #37427] |
Tue, 08 September 2009 22:31 ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
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.
|
|
|