summaryrefslogtreecommitdiff
path: root/drivers/s390/block
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.ibm.com>2018-12-03 15:19:12 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-12-13 12:42:24 +0300
commit87ccdcfa9c706be835fea226eda0b1ae9c671413 (patch)
tree46f4a68e1886b9bc19003b0f3ebf34e474dc772b /drivers/s390/block
parentca92b93d17f8c546d10ae175430fb22d6bd2d60b (diff)
downloadlinux-87ccdcfa9c706be835fea226eda0b1ae9c671413.tar.xz
s390/drivers: fix proc/debugfs file permissions
Remove write permissions for fops without a write callback. Signed-off-by: Sebastian Ott <sebott@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block')
-rw-r--r--drivers/s390/block/dasd_proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c
index 5cb80c645489..1770b99f607e 100644
--- a/drivers/s390/block/dasd_proc.c
+++ b/drivers/s390/block/dasd_proc.c
@@ -339,8 +339,7 @@ dasd_proc_init(void)
dasd_proc_root_entry = proc_mkdir("dasd", NULL);
if (!dasd_proc_root_entry)
goto out_nodasd;
- dasd_devices_entry = proc_create_seq("devices",
- S_IFREG | S_IRUGO | S_IWUSR,
+ dasd_devices_entry = proc_create_seq("devices", 0444,
dasd_proc_root_entry,
&dasd_devices_seq_ops);
if (!dasd_devices_entry)