diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:18:33 -0800 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2010-12-14 23:40:16 +0100 |
commit | b9ecedaf9df73f65d9b542ae9e394616dfd25d5d (patch) | |
tree | e09f96d09b05937cae3c8b506f5fa1aa38e7e956 | |
parent | 3193e96dd9c553125f93f6b02c3d6c23e5a5dd9a (diff) | |
download | lwn-b9ecedaf9df73f65d9b542ae9e394616dfd25d5d.tar.gz lwn-b9ecedaf9df73f65d9b542ae9e394616dfd25d5d.zip |
Staging: frontier: fix up some sysfs attribute permissions
commit 3bad28ec006ad6ab2bca4e5103860b75391e3c9d and
2a767fda5d0d8dcff465724dfad6ee131489b3f2 upstream merged together.
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Taht <d@teklibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | drivers/staging/frontier/tranzport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c index eed74f0fe0b6..f21a0e8d8d9b 100644 --- a/drivers/staging/frontier/tranzport.c +++ b/drivers/staging/frontier/tranzport.c @@ -204,7 +204,7 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev) t->value = temp; \ return count; \ } \ - static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value); + static DEVICE_ATTR(value, S_IWUSR | S_IRUGO, show_##value, set_##value); show_int(enable); show_int(offline); |