summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/KerneloopsScanner.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Kerneloops: use 1st line of oops as REASON. Closes rhbz#574196.Denys Vlasenko2010-03-171-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* don't read syslog if it didn't changeJiri Moskovcak2010-03-151-3/+12
|
* use FILENAME_BACKTRACE for oops text tooDenys Vlasenko2010-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add ProcessUnpackaged option to abrt.confDenys Vlasenko2010-03-051-2/+0
| | | | | | Based on patch by Pekka Pietikainen <pp@ee.oulu.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify kerneloops/dumpoops a bitDenys Vlasenko2010-02-231-111/+101
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* license fixNikola Pajkovsky2010-02-161-23/+16
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* Kerneloops: fix BZ reporting of oopsesDenys Vlasenko2010-01-291-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* SOSreport: make it avoid double runs; add forced regeneration; upd PLUGINS-HOWTODenys Vlasenko2010-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* split load_crash_data_from_debug_dump from DebugDumpToCrashReportDenys Vlasenko2010-01-201-2/+0
| | | | | | We will need it elsewhere later Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use get_crash_data_item_content() more widely. -4k.Denys Vlasenko2010-01-191-3/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move all FILENAME_xxx defines to inc/CrashTypes.hDenys Vlasenko2010-01-191-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* don't use getpagesize, it has been removed from posixJiri Moskovcak2010-01-141-1/+1
|
* Kerneloops: we require commandline for every crash, save dummy one for oopsesDenys Vlasenko2010-01-111-7/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: assorted fixes prompted by security analysis; more to comeDenys Vlasenko2010-01-111-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove std::string usage from class CABRTException.Denys Vlasenko2009-12-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make plugin descriptions more consistent in styleDenys Vlasenko2009-11-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* give Plugin class a map_plugin_settings_t memberDenys Vlasenko2009-11-061-10/+0
| | | | | | This simplifies and unifies get/set settings ops Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass replace of const string& params by const char*Denys Vlasenko2009-11-061-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* InformAllUsers support. enabled by default for Kerneloops. Tested wuth CCpp.Denys Vlasenko2009-11-051-16/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Kerneloopscanner: small fix to make it work on x86_64Jiri Moskovcak2009-11-031-1/+2
|
* Normal user can see kerneloops and report itNikola Pajkovsky2009-10-291-1/+2
| | | | Bugzilla memory leaks fix
* dumpoops: add -s option to dump results to stdoutDenys Vlasenko2009-10-291-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Kerneloops: remove two classes, vector_string_t works as goodDenys Vlasenko2009-10-291-9/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* KerneloopsScanner: do not use global variables needlesslyDenys Vlasenko2009-10-281-7/+6
| | | | | | | | text data bss dec hex filename 27341 1688 48 29077 7195 old/libKerneloopsScanner.so 26466 1672 24 28162 6e02 new/libKerneloopsScanner.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* reduce verbosity a bitDenys Vlasenko2009-09-211-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix the bug where lock file was not removedDenys Vlasenko2009-09-091-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add gettext support for all pluginsNikola Pajkovsky2009-09-021-1/+1
|
* add job ids (== thread ids) to warning/update DBus messagesDenys Vlasenko2009-08-261-1/+1
| | | | | | | | renamed: comm_layer_inner_warning -> warn_client comm_layer_inner_status -> update_client Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more sensible loggingDenys Vlasenko2009-08-251-8/+6
| | | | | | | | | | | comm_layer_inner_debug was jumping through the hoops in order to simply send a message to stderr. this can be made much simpler. also, set logmode to LOGMODE_SYSLOG in abrt daemon, making its log visible if it is daemonized. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* BZ#518413 PATCH ... furious kerneloops reportingAnton Arapov2009-08-251-27/+30
| | | | back to old logic.
* moved LoadSettings from plugins into PluginManagerZdenek Prikryl2009-08-111-8/+0
|
* add the GPL notice to the kerneloops' scannerAnton Arapov2009-08-111-0/+26
| | | | this is important, since the codebase of the kerneloops.org was used.
* kerneloops eliminate commented code, related to type distinguishing...Anton Arapov2009-08-111-2/+2
| | | | it seems stable, proved by the stress tests. :)
* Kerneloops plugin: style fixesAnton Arapov2009-08-101-117/+123
|
* Split real code from lib/MiddleWare/Plugin.h into Plugin.cpp.Denys Vlasenko2009-08-071-3/+0
| | | | | | 30k smaller code. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* CDebugDump::Create(pDir, pUID): make 2nd param uid_t, not stringDenys Vlasenko2009-08-051-1/+1
|
* dumpoops: hopefully fix KerneloopsScanner plugin usageDenys Vlasenko2009-08-041-0/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* delete semicolon in "if (expr); stmt;" , autodetect dmesg/syslogDenys Vlasenko2009-07-311-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added new interface for geting plugins' settings (will be used in gui)Zdenek Prikryl2009-07-311-4/+17
|
* Move PLUGIN_INFOs to .cpp files: same object must never be defined twiceDenys Vlasenko2009-07-311-0/+9
| | | | | | | | and if structure is defined in a .h file, that happens. Since this particular structure has non-trivial destructor, it was running twice and resulted in double-free. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* KerneloopsReporter: plug a leak in writefunctionDenys Vlasenko2009-07-311-11/+18
| | | | | | Also some preparatory cleanups for future dumpoops patch are included Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename auto variables to not have m_ prefixes - they are not members!Denys Vlasenko2009-07-311-19/+16
| | | | | | no logic changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bug fixes in kerneloops scannerDenys Vlasenko2009-07-311-54/+45
| | | | | | | | | | | | | | | | | | | | | CKerneloopsScanner::Run - scan syslog file first, then dmesg (was other way around) CKerneloopsScanner::SaveOopsToDebug - cast time_t and size_t to long when we feed them to snprintf CKerneloopsScanner::ScanSysLogFile - do not seek to negative offsets, POSIX does not allow that CSysLog::QueueOops - plug memory leak Also used some abrtlib functions where appropriate, use open instead of fopen where appropriate, do not check error in time() - it never fails, move around bits of code in CKerneloopsScanner to make it easier in future to create a tool for parsing arbitrary files for oopses. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixed security issueZdenek Prikryl2009-06-301-2/+1
| | | | User can read only his debugdump directories
* Handle logs with NUL chars betterMichal Schmidt2009-06-201-4/+4
| | | | | | | | | | | It is not too rare that '\0' chars appear in /var/log/messages. I saw a real-life case where kerneloops would show a popup with the same old oops after every login. It turned out that there were NUL chars in the log which prevented kerneloops from seeing its marker, so it always treated the old oops in the log as new. This patch fixes it by always going through the whole known length of the buffer (not stopping on NUL chars) and using less string-oriented functions in fill_lineinfo().
* Really limit max size of log to read to 32 MBMichal Schmidt2009-06-201-3/+3
| | | | | Because of MAX/MIN confusion, the buffer size was always at least 32 MB, instead of at most 32 MB as intended.
* new scanner, it is used by abrt's cronZdenek Prikryl2009-05-121-0/+159