diff options
| author | Daniel Novotny <dnovotny@dhcp-0-118.brq.redhat.com> | 2009-09-03 13:00:05 +0200 |
|---|---|---|
| committer | Daniel Novotny <dnovotny@dhcp-0-118.brq.redhat.com> | 2009-09-03 13:00:05 +0200 |
| commit | 336a56dc4564237476a2160263f1f7d71cd058ab (patch) | |
| tree | e55b9e56744ef2bbdfc3db625e68e75d4a7b5e1f /src/Daemon | |
| parent | 8ddafb9cf111b7a064a8632a9b8f7aef10fe5471 (diff) | |
| download | abrt-336a56dc4564237476a2160263f1f7d71cd058ab.tar.gz abrt-336a56dc4564237476a2160263f1f7d71cd058ab.tar.xz abrt-336a56dc4564237476a2160263f1f7d71cd058ab.zip | |
fix polkit
Diffstat (limited to 'src/Daemon')
| -rw-r--r-- | src/Daemon/Polkit.cpp | 4 | ||||
| -rw-r--r-- | src/Daemon/Polkit.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Daemon/Polkit.cpp b/src/Daemon/Polkit.cpp index d1c05a6..8c8e388 100644 --- a/src/Daemon/Polkit.cpp +++ b/src/Daemon/Polkit.cpp @@ -24,7 +24,7 @@ #include "Polkit.h" -PolkitResult polkit_check_authorization(char *action_id) +PolkitResult polkit_check_authorization(char* dbus_name,char *action_id) { PolkitAuthority *authority; PolkitSubject *subject; @@ -33,7 +33,7 @@ PolkitResult polkit_check_authorization(char *action_id) g_type_init(); authority = polkit_authority_get(); - subject = polkit_system_bus_name_new( NULL /*TODO get bus name*/ ); + subject = polkit_system_bus_name_new( dbus_name ); result = polkit_authority_check_authorization_sync(authority, subject, diff --git a/src/Daemon/Polkit.h b/src/Daemon/Polkit.h index b03e0d4..bb03822 100644 --- a/src/Daemon/Polkit.h +++ b/src/Daemon/Polkit.h @@ -34,6 +34,6 @@ POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE*/ PolkitChallenge = 0x03 } PolkitResult; -PolkitResult polkit_check_authorization(char *action_id); +PolkitResult polkit_check_authorization(char * dbus_name,char *action_id); #endif |
