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: upstream/snapshot3+hdmi~12326^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bad28ec006ad6ab2bca4e5103860b75391e3c9d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Staging: frontier: fix up some sysfs attribute permissions They should not be writable by any user Reported-by: Linus Torvalds Cc: David Taht Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c index a145a15..1611a27 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_IRUSR | S_IRUGO, show_##value, set_##value); show_int(enable); show_int(offline);