Bug 174848
Summary: | alsa fails to create IPC message queue since upgrade to 2.6.14 series | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | PvR <thenephilim13> | ||||
Component: | alsa-lib | Assignee: | Martin Stransky <stransky> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | CC: | netllama | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-12-13 09:14:24 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
PvR
2005-12-02 18:45:06 UTC
Created attachment 121774 [details]
asoundrc containing default device
Ok, I think I have figure out how to reproduce. I use the same .asoundrc for root and for my normal user, both specifying the same IPC key. If root uses it first, my normal user cannot use the same IPC key, if normal user uses it first and then root uses it, the normal user can continue to use it. I guess a workaround is just to specify different keys in the two .asoundrcs. However, I don't think I've ran into this problem with kernel <= 2.6.13. Yes, you're right, it's because we don't allow common users to read memory allocated by root. I'll take a look on it. It's caused by alsa-lib. Could you please check the latest update (lib/utils) for FC4? Nope, no change in behaviour. [peter@dell bigcalm]$ rpm -qa | grep -i alsa alsa-lib-1.0.10-2.FC4 alsa-utils-1.0.10-1.FC4 alsa-lib-devel-1.0.10-2.FC4 [peter@dell bigcalm]$ uname -a Linux dell 2.6.14-1.1644_FC4 #1 Sun Nov 27 03:25:11 EST 2005 i686 i686 i386 GNU/Linux You can specify the right for shared memory in your .asoundrc files. If you want to share memory between root and other users you have to set rights to 0666. Here is an example of .asoundrc file: pcm.!fixed { type plug slave { pcm "hw:2,0" rate 48000 } } pcm.!output { type dmix ipc_key 1234 ipc_perm 0666 slave { pcm "hw:2,0" period_time 0 period_size 1024 buffer_size 8192 rate 48000 } } pcm.!default { type plug slave.pcm "output" } Yup, this fixes the problem! Thanks! |