diff options
author | Dan Williams <dcbw@redhat.com> | 2012-12-15 10:21:40 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-04-08 10:55:37 -0500 |
commit | c4ac2f32791dc66edf86f2a36a7fa0bd86ce0e1e (patch) | |
tree | 8c9b6cbdb021edae45464e208334552d0575b7c7 /src/nm-dbus-manager.h | |
parent | c9335a497bb3d51ad8a5ed15e3f016c42efbb39d (diff) |
core: add caller info functions to DBusManager
Because the DBusManager is the thing that knows about private
connections, it's the thing best positioned to get caller
details like sender and UID.
Diffstat (limited to 'src/nm-dbus-manager.h')
-rw-r--r-- | src/nm-dbus-manager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nm-dbus-manager.h b/src/nm-dbus-manager.h index b0f9f44e25..d52b4ab2c5 100644 --- a/src/nm-dbus-manager.h +++ b/src/nm-dbus-manager.h @@ -84,6 +84,17 @@ gboolean nm_dbus_manager_name_has_owner (NMDBusManager *self, DBusConnection * nm_dbus_manager_get_dbus_connection (NMDBusManager *self); DBusGConnection * nm_dbus_manager_get_connection (NMDBusManager *self); +gboolean nm_dbus_manager_get_caller_info (NMDBusManager *self, + DBusGMethodInvocation *context, + char **out_sender, + gulong *out_uid); + +gboolean nm_dbus_manager_get_caller_info_from_message (NMDBusManager *self, + DBusConnection *connection, + DBusMessage *message, + char **out_sender, + gulong *out_uid); + void nm_dbus_manager_register_object (NMDBusManager *self, const char *path, gpointer object); |