who can listen on a signal

Michael Krivoruchko misha at elegantsoft.com
Wed Aug 31 11:32:18 PDT 2005


Hi All,

<disclaimer>I am novice user of D-Bus, thus I might miss something
pretty obvious from the D-Bus expert point of view.</disclaimer>

I am looking for a solution to the following situation:

All objects mentioned below are open for any user. I.e. there is
no security restrictions on these objects enforced by D-Bus con-
figuration.

A service registers an object (A) with system bus. A client uses
object A to ask (method call on object A) this object to create
another object - B1. Object B1 has a few methods and a signal.
Object B1 also knows uid (uid1) of the client connection to the
system bus which initiated creation of B1. The client then can
call methods of object B1, but the object checks uid of a client
connection on each attempt to call a method. If uid of the client
does not match uid1, the method invocation fails. However, any
client can subscribe (add match) to the object B1 signal.

I want object B1 to control access to its data and functionality
by matching a client connection uid against its knowledge of the
originator uid (uid1 in the example above).

The problem is object B1 completely unaware of what clients sub-
scribed to its signal which delivers potentially sensitive infor-
mation.

Thank you in advance.
Misha
--



More information about the dbus mailing list