[pulseaudio-tickets] [Bug 90959] Missing device detection with module-udev-detect with multiple server
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Aug 16 03:09:25 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90959
--- Comment #12 from samycookie at gmail.com ---
(In reply to Tanu Kaskinen from comment #8)
> The process tree image shows that you're running the test user's pulseaudio
> instance under sudo. The expected result in that case is that the test user
> doesn't get access to the hardware, because sudo doesn't create a session in
> logind, and pulseaudio's multiuser support relies on logind/udev to grant
> sound card access only to the active session.
>
> The likely reason why the test user has access to the sound card anyway in
> your case is that Debian adds users to the "audio" group by default, and
> users in the "audio" group always have access to the sound cards.
>
> If your use case is just the regular "allow two users to be logged in, with
> only one login session active at a time", then removing the users from the
> "audio" group should help.
In my use case the two PA daemons should have access to sound.
One is a regular user and should have access to the embedded audio card for
playing sound and other stuff.
Another is a system daemon that acquires sound via the external USB sound cards
and via PulseAudio. This daemon is launched with restrained permissions and
with its proper user/group. You're right, I had to add my daemon to 'audio'
group for having access to audio with PA.
To summarize, a user session should access to the internal sound card, my
system daemon to the external sound card. But the previously described behavior
prevent my daemon to have access to the USB sound card when disconnecting /
reconnecting.
If I have well understood, a possible workaround may be to configure udev
permissions to only give access at the sound card to my system daemon group ?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150816/c65fff4f/attachment.html>
More information about the pulseaudio-bugs
mailing list