This file is indexed.

/usr/lib/python2.7/dist-packages/framework/patterns/dbuscache.py is in fso-frameworkd 0.10.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env python
"""
freesmartphone.org Framework Daemon

(C) 2009 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
GPLv2 or later

Package: framework
Module: controller
"""

__version__ = "1.0.2"

import dbus

_bus = dbus.SystemBus()
_objects = {}
_ifaces = {}

#----------------------------------------------------------------------------#
def dbusInterfaceForObjectWithInterface( service, object, interface ):
#----------------------------------------------------------------------------#
    """
    Gather dbus.Interface proxy for given triple of service, object, interface
    Try to cache as much as possible.
    """

    try:
        iface = _ifaces[ ( service, object, interface ) ]
    except KeyError:
        try:
            obj = _objects[ ( service, object ) ]
        except KeyError:
            # this call will always succeed, even if the questioned service is not online yet
            obj = _objects[ ( service, object ) ] = _bus.get_object( service, object, introspect=False, follow_name_owner_changes=True )
        iface = _ifaces[ ( service, object, interface ) ] = dbus.Interface( obj, interface )

    return iface

dbus.InterfaceForObjectWithInterface = dbusInterfaceForObjectWithInterface

#----------------------------------------------------------------------------#
def dbusCallAsyncDontCare( method, *args ):
#----------------------------------------------------------------------------#
    """
    Call dbus method async., don't care about any errors or replies.
    """
    method( *args, **dict( reply_handler=nop, error_handler=nop ) )


#----------------------------------------------------------------------------#
def nop( *args, **kwargs ):
#----------------------------------------------------------------------------#
    #print ( "dbusCallAsyncDontCare returned with ", args, kwargs )
    pass