diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-18 11:21:04 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-09 13:33:24 -0800 |
commit | 09af6969af29a9c169c6ebe27db9738f8befa544 (patch) | |
tree | 218edf0cd1bed18dc0500005fa373d8559897a07 /drivers | |
parent | ce2d381b84d725591199cfce026760b60a351624 (diff) |
Staging: samsung-laptop: fix up my fixup for some sysfs attribute permissions
commit 4d7bc388b44e42a1feafa35e50eef4f24d6ca59d upstream.
They should be writable by root, not readable.
Doh, stupid me with the wrong flags.
Reported-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-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 28700b49827..ac2bf11e111 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_IRUSR | S_IRUGO, +static DEVICE_ATTR(silent, S_IWUSR | S_IRUGO, get_silent_state, set_silent_state); |