diff options
author | 2018-12-03 13:19:12 +0100 | |
---|---|---|
committer | 2018-12-13 10:42:24 +0100 | |
commit | 87ccdcfa9c706be835fea226eda0b1ae9c671413 (patch) | |
tree | 46f4a68e1886b9bc19003b0f3ebf34e474dc772b /drivers/s390/char/tape_proc.c | |
parent | s390: convert to DEFINE_SHOW_ATTRIBUTE (diff) | |
download | linux-87ccdcfa9c706be835fea226eda0b1ae9c671413.tar.gz linux-87ccdcfa9c706be835fea226eda0b1ae9c671413.tar.bz2 linux-87ccdcfa9c706be835fea226eda0b1ae9c671413.zip |
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/char/tape_proc.c')
-rw-r--r-- | drivers/s390/char/tape_proc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/char/tape_proc.c b/drivers/s390/char/tape_proc.c index 32a14ee31c6b..2238d9df6c47 100644 --- a/drivers/s390/char/tape_proc.c +++ b/drivers/s390/char/tape_proc.c @@ -111,11 +111,8 @@ static const struct seq_operations tape_proc_seq = { void tape_proc_init(void) { - tape_proc_devices = proc_create_seq("tapedevices", - S_IFREG | S_IRUGO | S_IWUSR, NULL, &tape_proc_seq); - if (tape_proc_devices == NULL) { - return; - } + tape_proc_devices = proc_create_seq("tapedevices", 0444, NULL, + &tape_proc_seq); } /* |