[pulseaudio-discuss] System mode & SHM

Pali Rohár pali.rohar at gmail.com
Sun Nov 23 05:43:16 PST 2014


On Sunday 23 November 2014 09:25:46 David Henningsson wrote:
> On 2014-11-22 22:39, Pali Rohár wrote:
> > Hello,
> > 
> > it is possible to enable shared memory when pulseaudio is
> > stared in system mode?
> 
> Not without recompiling PulseAudio, the relevant code is in
> src/pulsecore/protocol_native.c, function command_auth:
> 
> #ifdef HAVE_CREDS
>      if (do_shm) {
>          /* Only enable SHM if both sides are owned by the
> same * user. This is a security measure because otherwise
> data * private to the user might leak. */
> 
>          const pa_creds *creds;
>          if (!(creds = pa_pdispatch_creds(pd)) || getuid() !=
> creds->uid) do_shm = false;
>      }
> #endif
> 
> Maybe there's more stuff that needs to be changed as well, I
> don't know.

Ok, so what about adding parameter which force SHM support if 
user/administrator/owner of system want to do that?

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20141123/40df3afc/attachment.sig>


More information about the pulseaudio-discuss mailing list