projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bad28e
)
Staging: iio: adis16220: fix up some sysfs attribute permissions
author
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 19:19:53 +0000
(11:19 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 16 Nov 2010 19:19:53 +0000
(11:19 -0800)
They should not be writable by any user
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Barry Song <Barry.Song@analog.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/adis16220_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/accel/adis16220_core.c
b/drivers/staging/iio/accel/adis16220_core.c
index c86d1498737d0cbe7db91914f7865969662643a7..c2b20913937fd330d4b3d16d6c11687c4bcd3866 100644
(file)
--- a/
drivers/staging/iio/accel/adis16220_core.c
+++ b/
drivers/staging/iio/accel/adis16220_core.c
@@
-507,7
+507,7
@@
static IIO_DEVICE_ATTR(reset, S_IWUSR, NULL,
adis16220_write_reset, 0);
#define IIO_DEV_ATTR_CAPTURE(_store) \
- IIO_DEVICE_ATTR(capture, S_I
WUGO
, NULL, _store, 0)
+ IIO_DEVICE_ATTR(capture, S_I
RUSR
, NULL, _store, 0)
static IIO_DEV_ATTR_CAPTURE(adis16220_write_capture);