diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:21:03 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-09 13:33:23 -0800 |
commit | ce2d381b84d725591199cfce026760b60a351624 (patch) | |
tree | 0f73f8d453f8e5e8de5ef9cd9c09fb2f2c7fa7ea | |
parent | 8a55bf895ce60bb47ff7fb0cc44552fc1407065b (diff) | |
download | lwn-ce2d381b84d725591199cfce026760b60a351624.tar.gz lwn-ce2d381b84d725591199cfce026760b60a351624.zip |
Staging: samsung-laptop: fix up some sysfs attribute permissions
commit 90c05b97fdec8d2196e420d98f774bab731af7aa upstream.
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/samsung-laptop/samsung-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |