From: Greg Kroah-Hartman Date: Tue, 16 Nov 2010 19:18:33 +0000 (-0800) Subject: Staging: frontier: fix up some sysfs attribute permissions X-Git-Tag: firefly_0821_release~10186^2~658 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b9e50d0460818638a84ee1ba267b765098e1808;p=firefly-linux-kernel-4.4.55.git 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 Cc: David Taht Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c index ef8fcc8c67bd..f6e04f83cd23 100644 --- a/drivers/staging/frontier/tranzport.c +++ b/drivers/staging/frontier/tranzport.c @@ -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);