diff options
Diffstat (limited to 'sound/core/info.c')
-rw-r--r-- | sound/core/info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/info.c b/sound/core/info.c index 4b36767af9e1..fe502bc5e6d2 100644 --- a/sound/core/info.c +++ b/sound/core/info.c | |||
@@ -454,7 +454,7 @@ static struct snd_info_entry *create_subdir(struct module *mod, | |||
454 | entry = snd_info_create_module_entry(mod, name, NULL); | 454 | entry = snd_info_create_module_entry(mod, name, NULL); |
455 | if (!entry) | 455 | if (!entry) |
456 | return NULL; | 456 | return NULL; |
457 | entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; | 457 | entry->mode = S_IFDIR | 0555; |
458 | if (snd_info_register(entry) < 0) { | 458 | if (snd_info_register(entry) < 0) { |
459 | snd_info_free_entry(entry); | 459 | snd_info_free_entry(entry); |
460 | return NULL; | 460 | return NULL; |
@@ -470,7 +470,7 @@ int __init snd_info_init(void) | |||
470 | snd_proc_root = snd_info_create_entry("asound", NULL); | 470 | snd_proc_root = snd_info_create_entry("asound", NULL); |
471 | if (!snd_proc_root) | 471 | if (!snd_proc_root) |
472 | return -ENOMEM; | 472 | return -ENOMEM; |
473 | snd_proc_root->mode = S_IFDIR | S_IRUGO | S_IXUGO; | 473 | snd_proc_root->mode = S_IFDIR | 0555; |
474 | snd_proc_root->p = proc_mkdir("asound", NULL); | 474 | snd_proc_root->p = proc_mkdir("asound", NULL); |
475 | if (!snd_proc_root->p) | 475 | if (!snd_proc_root->p) |
476 | goto error; | 476 | goto error; |
@@ -716,7 +716,7 @@ snd_info_create_entry(const char *name, struct snd_info_entry *parent) | |||
716 | kfree(entry); | 716 | kfree(entry); |
717 | return NULL; | 717 | return NULL; |
718 | } | 718 | } |
719 | entry->mode = S_IFREG | S_IRUGO; | 719 | entry->mode = S_IFREG | 0444; |
720 | entry->content = SNDRV_INFO_CONTENT_TEXT; | 720 | entry->content = SNDRV_INFO_CONTENT_TEXT; |
721 | mutex_init(&entry->access); | 721 | mutex_init(&entry->access); |
722 | INIT_LIST_HEAD(&entry->children); | 722 | INIT_LIST_HEAD(&entry->children); |