From: Greg Kroah-Hartman Date: Tue, 16 Nov 2010 19:21:03 +0000 (-0800) Subject: Staging: samsung-laptop: fix up some sysfs attribute permissions X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=90c05b97fdec8d2196e420d98f774bab731af7aa;p=deliverable%2Flinux.git Staging: samsung-laptop: fix up some sysfs attribute permissions They should not be writable by any user Reported-by: Linus Torvalds Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/samsung-laptop/samsung-laptop.c b/drivers/staging/samsung-laptop/samsung-laptop.c index eb44b60e1eb5..28700b498273 100644 --- a/drivers/staging/samsung-laptop/samsung-laptop.c +++ b/drivers/staging/samsung-laptop/samsung-laptop.c @@ -356,7 +356,7 @@ static ssize_t set_silent_state(struct device *dev, } return count; } -static DEVICE_ATTR(silent, S_IWUGO | S_IRUGO, +static DEVICE_ATTR(silent, S_IRUSR | S_IRUGO, get_silent_state, set_silent_state);