Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d904e89 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: iio: adis16220: fix up some sysfs attribute permissions



They should not be writable by any user

Reported-by: default avatarLinus 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3bad28ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);