Re: lm sensors sysfs file structure

From: Greg KH (greg@kroah.com)
Date: Fri Mar 28 2003 - 02:40:31 EST


On Fri, Mar 28, 2003 at 09:21:48AM +0200, Martin Schlemmer wrote:
>
> Silly w83781d again. temp1 is a u8, and temp2 and temp3 is u16
> (if they are supported on the specific model.
>
> Should we do any bounds checking on input via sysfs ?

So that you can't hurt your hardware or crash the os, yes.

I think the write ability is limited to root, so that's a good first
step too.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:31 EST