Staging: samsung-laptop: fix up some sysfs attribute permissions
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 19:21:03 +0000 (11:21 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:23 +0000 (13:33 -0800)
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>
drivers/staging/samsung-laptop/samsung-laptop.c

index eb44b60e1eb542d735cb0cbabbff1e55109008c9..28700b4982737e589bcb2faba04b865bd724671c 100644 (file)
@@ -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);