[PATCH] read dmi info from sysfs instead of call dmidecode

Doug Klima cardoe at gentoo.org
Thu Dec 6 09:41:12 PST 2007


David Zeuthen wrote:
> On Tue, 2007-11-13 at 20:08 +0100, Danny Kukawka wrote:
>   
>> Hi,
>>
>> this patch makes HAL to read dmi/smbios information on Linux from sysfs 
>> (/sys/devices/virtual/dmi/id) instead of use a prober to call and parse 
>> dmidecode.
>>     
>
> I'm pretty sure this was discussed some (many maybe) months ago and I
> think what I said was that this wasn't going to work as some of the
> files are read-only for root.... Doesn't this patch suffer from the same
> problems?
>
>      David
>
>
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
>   
The data is read before privileges are dropped. So it's a non-issue.


More information about the hal mailing list