Bug 73112 - PA should not expose /org/pulseaudio/server_lookup1 object if DBus module is unloaded
Summary: PA should not expose /org/pulseaudio/server_lookup1 object if DBus module is ...
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-29 10:03 UTC by Jan Včelák
Modified: 2018-07-30 09:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jan Včelák 2013-12-29 10:03:29 UTC
If DBus module is not loaded into PulseAudio, the DBus interface for server socket lookup is still available and the property Address returns a path to non-existing file.

IMHO, PA should not expose /org/pulseaudio/server_lookup1 object if the DBus module is unloaded.

Example:

http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/ConnectingToServer

$ python
Python 2.7.5 (default, Nov 12 2013, 16:45:54) 
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> bus = dbus.SessionBus()
>>> server_lookup = bus.get_object("org.PulseAudio1", "/org/pulseaudio/server_lookup1")
>>> address = server_lookup.Get("org.PulseAudio.ServerLookup1", "Address", dbus_interface="org.freedesktop.DBus.Properties")
>>> print address
unix:path=/run/user/1000/pulse/dbus-socket
>>> 
$ ls /run/user/1000/pulse/dbus-socket
ls: cannot access /run/user/1000/pulse/dbus-socket: No such file or directory
$ ls /run/user/1000/pulse 
native=  pid
Comment 1 GitLab Migration User 2018-07-30 09:33:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/6.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.