aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r--sound/core/pcm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 66ac89aad681..c352bfb973cc 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -530,7 +530,7 @@ static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
530 pcm->card->proc_root); 530 pcm->card->proc_root);
531 if (!entry) 531 if (!entry)
532 return -ENOMEM; 532 return -ENOMEM;
533 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 533 entry->mode = S_IFDIR | 0555;
534 if (snd_info_register(entry) < 0) { 534 if (snd_info_register(entry) < 0) {
535 snd_info_free_entry(entry); 535 snd_info_free_entry(entry);
536 return -ENOMEM; 536 return -ENOMEM;
@@ -552,7 +552,7 @@ static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
552 if (entry) { 552 if (entry) {
553 entry->c.text.read = snd_pcm_xrun_debug_read; 553 entry->c.text.read = snd_pcm_xrun_debug_read;
554 entry->c.text.write = snd_pcm_xrun_debug_write; 554 entry->c.text.write = snd_pcm_xrun_debug_write;
555 entry->mode |= S_IWUSR; 555 entry->mode |= 0200;
556 entry->private_data = pstr; 556 entry->private_data = pstr;
557 if (snd_info_register(entry) < 0) { 557 if (snd_info_register(entry) < 0) {
558 snd_info_free_entry(entry); 558 snd_info_free_entry(entry);
@@ -590,7 +590,7 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
590 substream->pstr->proc_root); 590 substream->pstr->proc_root);
591 if (!entry) 591 if (!entry)
592 return -ENOMEM; 592 return -ENOMEM;
593 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 593 entry->mode = S_IFDIR | 0555;
594 if (snd_info_register(entry) < 0) { 594 if (snd_info_register(entry) < 0) {
595 snd_info_free_entry(entry); 595 snd_info_free_entry(entry);
596 return -ENOMEM; 596 return -ENOMEM;
@@ -647,7 +647,7 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
647 entry->private_data = substream; 647 entry->private_data = substream;
648 entry->c.text.read = NULL; 648 entry->c.text.read = NULL;
649 entry->c.text.write = snd_pcm_xrun_injection_write; 649 entry->c.text.write = snd_pcm_xrun_injection_write;
650 entry->mode = S_IFREG | S_IWUSR; 650 entry->mode = S_IFREG | 0200;
651 if (snd_info_register(entry) < 0) { 651 if (snd_info_register(entry) < 0) {
652 snd_info_free_entry(entry); 652 snd_info_free_entry(entry);
653 entry = NULL; 653 entry = NULL;
@@ -1087,7 +1087,7 @@ static ssize_t show_pcm_class(struct device *dev,
1087 return snprintf(buf, PAGE_SIZE, "%s\n", str); 1087 return snprintf(buf, PAGE_SIZE, "%s\n", str);
1088} 1088}
1089 1089
1090static DEVICE_ATTR(pcm_class, S_IRUGO, show_pcm_class, NULL); 1090static DEVICE_ATTR(pcm_class, 0444, show_pcm_class, NULL);
1091static struct attribute *pcm_dev_attrs[] = { 1091static struct attribute *pcm_dev_attrs[] = {
1092 &dev_attr_pcm_class.attr, 1092 &dev_attr_pcm_class.attr,
1093 NULL 1093 NULL