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>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Martin Schwidefsky

vecāks
ca92b93d17
revīzija
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user