]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/core/pcm.c
[ALSA] Fix permissions in some /proc files
[karo-tx-linux.git] / sound / core / pcm.c
index 8d94325529a87258bcdade5152f55fdb8f37b53f..a2757fcec1f0ebf2311c83cec25055dee1816b25 100644 (file)
@@ -451,6 +451,7 @@ static int snd_pcm_stream_proc_init(snd_pcm_str_t *pstr)
                entry->c.text.read = snd_pcm_xrun_debug_read;
                entry->c.text.write_size = 64;
                entry->c.text.write = snd_pcm_xrun_debug_write;
+               entry->mode |= S_IWUSR;
                entry->private_data = pstr;
                if (snd_info_register(entry) < 0) {
                        snd_info_free_entry(entry);