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>
This commit is contained in:

committed by
Martin Schwidefsky

parent
ca92b93d17
commit
87ccdcfa9c
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user