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/Plugins | |
parent | 7037aa0c7ad092d2228cf82b0ef5096cdabe9019 (diff) | |
download | abrt-c90533a0d201788199a8f0c922d5ba75af75f2f0.tar.gz abrt-c90533a0d201788199a8f0c922d5ba75af75f2f0.tar.xz abrt-c90533a0d201788199a8f0c922d5ba75af75f2f0.zip |
disable polkit
Diffstat (limited to 'lib/Plugins')
-rw-r--r-- | lib/Plugins/CCpp.cpp | 9 |
1 files changed, 6 insertions, 3 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); |