<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Missing device detection with module-udev-detect with multiple server"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90959#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Missing device detection with module-udev-detect with multiple server"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90959">bug 90959</a>
from <span class="vcard"><a class="email" href="mailto:samycookie@gmail.com" title="samycookie@gmail.com">samycookie@gmail.com</a>
</span></b>
<pre>(In reply to Tanu Kaskinen from <a href="show_bug.cgi?id=90959#c8">comment #8</a>)
<span class="quote">> 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.</span >
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 ?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>