diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:19:53 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 11:19:53 -0800 |
commit | 1d904e8950c86e670ace237eaea1d48cd81e94df (patch) | |
tree | acac0f11c18da6bb2791c00e1a44fc0fd10bc010 /drivers/staging | |
parent | 3bad28ec006ad6ab2bca4e5103860b75391e3c9d (diff) | |
download | kernel_samsung_tuna-1d904e8950c86e670ace237eaea1d48cd81e94df.zip kernel_samsung_tuna-1d904e8950c86e670ace237eaea1d48cd81e94df.tar.gz kernel_samsung_tuna-1d904e8950c86e670ace237eaea1d48cd81e94df.tar.bz2 |
Staging: iio: adis16220: fix up some sysfs attribute permissions
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>
Diffstat (limited to 'drivers/staging')
-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 c86d149..c2b2091 100644 --- 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_IWUGO, NULL, _store, 0) + IIO_DEVICE_ATTR(capture, S_IRUSR, NULL, _store, 0) static IIO_DEV_ATTR_CAPTURE(adis16220_write_capture); |