mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
Staging: zram: fix up my fixup for some sysfs attribute permissions
They should be writable by root, not readable. Doh, stupid me with the wrong flags. Reported-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: Nitin Gupta <ngupta@vflare.org> Cc: Pekka Enberg <penberg@cs.helsinki.fi> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
926c11151e
commit
a3d1310701
1 changed files with 2 additions and 2 deletions
|
@ -189,10 +189,10 @@ static ssize_t mem_used_total_show(struct device *dev,
|
||||||
return sprintf(buf, "%llu\n", val);
|
return sprintf(buf, "%llu\n", val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DEVICE_ATTR(disksize, S_IRUGO | S_IRUSR,
|
static DEVICE_ATTR(disksize, S_IRUGO | S_IWUSR,
|
||||||
disksize_show, disksize_store);
|
disksize_show, disksize_store);
|
||||||
static DEVICE_ATTR(initstate, S_IRUGO, initstate_show, NULL);
|
static DEVICE_ATTR(initstate, S_IRUGO, initstate_show, NULL);
|
||||||
static DEVICE_ATTR(reset, S_IRUSR, NULL, reset_store);
|
static DEVICE_ATTR(reset, S_IWUSR, NULL, reset_store);
|
||||||
static DEVICE_ATTR(num_reads, S_IRUGO, num_reads_show, NULL);
|
static DEVICE_ATTR(num_reads, S_IRUGO, num_reads_show, NULL);
|
||||||
static DEVICE_ATTR(num_writes, S_IRUGO, num_writes_show, NULL);
|
static DEVICE_ATTR(num_writes, S_IRUGO, num_writes_show, NULL);
|
||||||
static DEVICE_ATTR(invalid_io, S_IRUGO, invalid_io_show, NULL);
|
static DEVICE_ATTR(invalid_io, S_IRUGO, invalid_io_show, NULL);
|
||||||
|
|
Loading…
Reference in a new issue