[pulseaudio-tickets] [Bug 73112] New: PA should not expose /org/pulseaudio/server_lookup1 object if DBus module is unloaded

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 29 02:03:29 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=73112

          Priority: medium
            Bug ID: 73112
                CC: lennart at poettering.net
          Assignee: pulseaudio-bugs at lists.freedesktop.org
           Summary: PA should not expose /org/pulseaudio/server_lookup1
                    object if DBus module is unloaded
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: jvcelak at fedoraproject.org
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: daemon
           Product: PulseAudio

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

-- 
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/20131229/5abddd41/attachment.html>


More information about the pulseaudio-bugs mailing list