Ticket #582 (closed enhancement: fixed)

Opened 14 months ago

Last modified 12 months ago

[PATCH] system-wide pulseaudio and module-hal-detect DBUS policy problem

Reported by: mgrela Owned by: lennart
Milestone: 0.9.16 Component: module-hal-detect
Keywords: Cc:

Description

Hi,

I've recently encountered a problem with running a system-wide pulseaudio daemon for my HTPC together with module-hal-detect. The issue is, that the DBUS policy for system bus is to deny all remote method calls and name ownerships except where there is a policy defined for a process. This causes pulseaudio module-hal-detect to fail when communicating with HAL:

Jun 13 13:49:49 ix dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.3" (uid=105 pid=1684 comm="/usr/bin/pulseaudio --log-target=syslog --disallow") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1576 comm="/usr/sbin/hald --use-syslog --verbose=yes "))
Jun 13 13:49:49 ix pulseaudio[1684]: module-hal-detect.c: D-Bus error while parsing HAL data: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.3" (uid=105 pid=1684 comm="/usr/bin/pulseaudio --log-target=syslog --disallow") interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1576 comm="/usr/sbin/hald --use-syslog --verbose=yes "))

Pulseaudio is also unable to bind a DBUS name for itself:

Jun 13 13:59:57 ix pulseaudio[1683]: main.c: Failed to acquire org.pulseaudio.Server: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.3" is not allowed to own the service "org.pulseaudio.Server" due to security policies in the configuration file

The attached dbus policy file fixes these problems and should be put into /etc/dbus-1/system.d/

Attachments

pulseaudio.conf (0.5 kB) - added by mgrela 14 months ago.
Dbus policy file
pulseaudio-systemwide-dbus-policy.patch.gz (1.1 kB) - added by mgrela 12 months ago.

Change History

Changed 14 months ago by mgrela

Dbus policy file

  Changed 14 months ago by mgrela

  • summary changed from [PATCH] system-wide pulseaudio and module-hal-detect to [PATCH] system-wide pulseaudio and module-hal-detect DBUS policy problem

  Changed 14 months ago by mgrela

  • type changed from defect to enhancement

  Changed 14 months ago by mgrela

  • component changed from daemon to module-hal-detect

follow-up: ↓ 6   Changed 12 months ago by lennart

File looks fine.

But could you make this a proper patch that also includes the necessary hooks to install this in Makefile.am?

  Changed 12 months ago by lennart

Also see #606.

Changed 12 months ago by mgrela

in reply to: ↑ 4   Changed 12 months ago by mgrela

Replying to lennart:

File looks fine. But could you make this a proper patch that also includes the necessary hooks to install this in Makefile.am?

Patch attached.

  Changed 12 months ago by lennart

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.9.16

Applied in e8340345f6a102cd03b6676576bcd3879ead7aad

Thanks for the patch!

Note: See TracTickets for help on using tickets.