[PATCH 02/27] Staging: frontier: fix up some sysfs attribute permissions
Greg Kroah-Hartman
gregkh at suse.de
Thu Dec 2 21:08:44 UTC 2010
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds at linux-foundation.org>
Cc: David Taht <d at teklibre.com>
Cc: stable <stable at kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
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 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);
--
1.7.1
More information about the devel
mailing list