On 11/26/2014 03:46 PM, José Bollo wrote:
Hi Jaceck,
This last is a big evolution from previous DBUS version. I'm not sure to
understand why it "makes the process less efficient". However it may
break some legacy code. I've searched quickly in some copies of
tizen.org repo and did not found much references to
GetConnectionUnixUser (cynara, crosswalk) or GetConnectionSmackContext
(no package). Thus including a legacy function for
GetConnectionSmackContext is not needed.
Hi,
By making the process less efficient I meant that we need running
application's credentials such as uid and smack label to be able to ask
Cynara about its privileges. For D-Bus daemon code it's efficient to get
them as they can be obtained from socket connection and easily cached.
If service uses D-Bus as its IPC then it doesn't have direct connection
to the application meaning credentials must be obtained by D-Bus methods
like "GetConnectionCredentials" (or legacy "GetConnectionSmackContext").
This means calling, waiting for reply which takes time.
As for the "GetConnectionSmackContext" - I've seen references to it in
profile/ivi/gsignond project. That's why I kept this function when
upgrading to 1.8.2. It should be dropped in the future.
Best regards,
--
Jacek Bukarewicz
Samsung R&D Institute Poland
Samsung Electronics
[email protected]
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev