diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:19:53 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-09 13:33:23 -0800 |
commit | a4f9ccb3bcd3e5f1a2786b20d5dc06573abc1945 (patch) | |
tree | 21421bd5fe39467448e6b387c28601b10a9742f8 | |
parent | 96b86dfa904a14ebcb77e5650dec305836bfe428 (diff) | |
download | lwn-a4f9ccb3bcd3e5f1a2786b20d5dc06573abc1945.tar.gz lwn-a4f9ccb3bcd3e5f1a2786b20d5dc06573abc1945.zip |
Staging: iio: adis16220: fix up some sysfs attribute permissions
commit 1d904e8950c86e670ace237eaea1d48cd81e94df upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/iio/accel/adis16220_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/adis16220_core.c b/drivers/staging/iio/accel/adis16220_core.c index bb7d76539cd7..005733c35999 100644 --- a/drivers/staging/iio/accel/adis16220_core.c +++ b/drivers/staging/iio/accel/adis16220_core.c @@ -506,7 +506,7 @@ static IIO_DEVICE_ATTR(reset, S_IWUSR, NULL, adis16220_write_reset, 0); #define IIO_DEV_ATTR_CAPTURE(_store) \ - IIO_DEVICE_ATTR(capture, S_IWUGO, NULL, _store, 0) + IIO_DEVICE_ATTR(capture, S_IRUSR, NULL, _store, 0) static IIO_DEV_ATTR_CAPTURE(adis16220_write_capture); |