]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: frontier: fix up some sysfs attribute permissions
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 19:18:33 +0000 (11:18 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:27:04 +0000 (13:27 -0800)
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>
drivers/staging/frontier/tranzport.c

index ef8fcc8c67bd7db85cbc14607967a70e26487147..f6e04f83cd232cf0cbd3af979d02949eb8cfa432 100644 (file)
@@ -202,7 +202,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);