diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-08-11 18:36:21 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-08-11 18:36:21 +0200 |
commit | 2e51143de7ebdf71a19818ea613e3c37c1132c39 (patch) | |
tree | 06c98e9c2a5c2ae91d41a214b86b0e2e8b4f968d /lib/CommLayer/CommLayerServerDBus.cpp | |
parent | 3cfaec88a8ec167cb345de086b65e47900112bf3 (diff) | |
download | abrt-2e51143de7ebdf71a19818ea613e3c37c1132c39.tar.gz abrt-2e51143de7ebdf71a19818ea613e3c37c1132c39.tar.xz abrt-2e51143de7ebdf71a19818ea613e3c37c1132c39.zip |
for correct plugin's settings we need to know an user
Diffstat (limited to 'lib/CommLayer/CommLayerServerDBus.cpp')
-rw-r--r-- | lib/CommLayer/CommLayerServerDBus.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index d2b6d4d..4b6c99b 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -22,7 +22,7 @@ CCommLayerServerDBus::CCommLayerServerDBus() } catch(DBus::Error err) { - throw CABRTException(EXCEP_FATAL, std::string(__func__) + + throw CABRTException(EXCEP_FATAL, std::string(__func__) + "\nPlease check if:\n" + " * abrt is being run with root permissions\n" + " * you have reloaded the dbus\n"+ @@ -116,9 +116,10 @@ vector_map_string_string_t CCommLayerServerDBus::GetPluginsInfo() return plugins_info; } -map_plugin_settings_t CCommLayerServerDBus::GetPluginSettings(const std::string& pName) +map_plugin_settings_t CCommLayerServerDBus::GetPluginSettings(const std::string& pName, const std::string& pSender) { - return m_pObserver->GetPluginSettings(pName); + unsigned long unix_uid = m_pConn->sender_unix_uid(pSender.c_str()); + return m_pObserver->GetPluginSettings(pName, to_string(unix_uid)); } |