summaryrefslogtreecommitdiffstats
path: root/lib/MiddleWare/MiddleWare.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MiddleWare/MiddleWare.cpp')
-rw-r--r--lib/MiddleWare/MiddleWare.cpp35
1 files changed, 24 insertions, 11 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp
index 161b1f8e..477bd141 100644
--- a/lib/MiddleWare/MiddleWare.cpp
+++ b/lib/MiddleWare/MiddleWare.cpp
@@ -282,23 +282,36 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpDir, crash_info_t& p
dd.LoadText(FILENAME_EXECUTABLE, executable);
package = m_RPMInfo.GetPackage(executable, description);
- std::string packageName = package.substr(0, package.rfind("-", package.rfind("-") - 1));
- if (packageName == "" ||
- (m_setBlackList.find(packageName) != m_setBlackList.end()))
+ if (executable != "kernel")
{
- dd.Delete();
- dd.Close();
- return 0;
- }
- if (m_bOpenGPGCheck)
- {
- if (!m_RPMInfo.CheckFingerprint(packageName) ||
- !m_RPMInfo.CheckHash(packageName, executable))
+ std::string packageName = package.substr(0, package.rfind("-", package.rfind("-") - 1));
+ if (packageName == "" ||
+ (m_setBlackList.find(packageName) != m_setBlackList.end()))
{
dd.Delete();
dd.Close();
return 0;
}
+ if (m_bOpenGPGCheck)
+ {
+ if (!m_RPMInfo.CheckFingerprint(packageName) ||
+ !m_RPMInfo.CheckHash(packageName, executable))
+ {
+ dd.Delete();
+ dd.Close();
+ return 0;
+ }
+ }
+ }
+ else
+ {
+ package = "kernel";
+ description = "The Linux kernel"
+ description += "\n\n";
+ description += "The kernel contains the Linux kernel (vmlinuz), the core of any"
+ "Linux operating system. The kernel handles the basic functions"
+ "of the operating system: memory allocation, process allocation, device"
+ "input and output, etc."
}
dd.SaveText(FILENAME_PACKAGE, package);
dd.SaveText(FILENAME_DESCRIPTION, description);