diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-11-15 13:51:16 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-11-15 13:51:16 +0100 |
commit | c90533a0d201788199a8f0c922d5ba75af75f2f0 (patch) | |
tree | fbb9265acc10ce65a7f214e987671919930fd3c8 /lib | |
parent | 7037aa0c7ad092d2228cf82b0ef5096cdabe9019 (diff) | |
download | abrt-c90533a0d201788199a8f0c922d5ba75af75f2f0.tar.gz abrt-c90533a0d201788199a8f0c922d5ba75af75f2f0.tar.xz abrt-c90533a0d201788199a8f0c922d5ba75af75f2f0.zip |
disable polkit
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Plugins/CCpp.cpp | 9 | ||||
-rw-r--r-- | lib/Utils/Makefile.am | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 629da665..587ff380 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -28,7 +28,9 @@ #include "abrt_exception.h" #include "debug_dump.h" #include "comm_layer_inner.h" -#include "Polkit.h" +#if 0 + #include "Polkit.h" +#endif #include "backtrace.h" #include "CCpp_sha1.h" @@ -675,7 +677,7 @@ string CAnalyzerCCpp::GetGlobalUUID(const char *pDebugDumpDir) return create_hash(hash_base.c_str()); } } - +#if 0 static bool DebuginfoCheckPolkit(uid_t uid) { fflush(NULL); @@ -704,6 +706,7 @@ static bool DebuginfoCheckPolkit(uid_t uid) log("UID %d is not authorized to install debuginfos", uid); return false; } +#endif void CAnalyzerCCpp::CreateReport(const char *pDebugDumpDir, int force) { @@ -738,7 +741,7 @@ void CAnalyzerCCpp::CreateReport(const char *pDebugDumpDir, int force) dd.Close(); /* do not keep dir locked longer than needed */ string build_ids; - if (m_bInstallDebugInfo && DebuginfoCheckPolkit(xatoi_u(UID.c_str()))) + if (m_bInstallDebugInfo) { if (m_nDebugInfoCacheMB > 0) trim_debuginfo_cache(m_nDebugInfoCacheMB); diff --git a/lib/Utils/Makefile.am b/lib/Utils/Makefile.am index 206b825a..2951958f 100644 --- a/lib/Utils/Makefile.am +++ b/lib/Utils/Makefile.am @@ -56,8 +56,7 @@ libABRTdUtils_la_SOURCES = \ $(HEADER_DIR)/abrt_xmlrpc.h abrt_xmlrpc.cpp \ abrt_rh_support.h abrt_rh_support.cpp \ abrt_curl.h abrt_curl.cpp \ - $(HEADER_DIR)/plugin.h Plugin.cpp \ - Polkit.h Polkit.cpp + $(HEADER_DIR)/plugin.h Plugin.cpp libABRTdUtils_la_CPPFLAGS = \ -Wall -Werror \ |