summaryrefslogtreecommitdiffstats
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
...
* abrt-action-save-package-data: do not complain if "remote" element is missingDenys Vlasenko2011-03-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* gui-wizard-gtk: fix stealing againDenys Vlasenko2011-03-031-5/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Revert "renamed libreport.so to libreport2.so"Karel Klic2011-03-031-4/+4
| | | | | This is not needed at the end. This reverts commit ef96cd431369b2cf0dd640a0bb66be4fb029b9c0.
* remove FILENAME_REPRODUCE field. FILENAME_COMMENT should be used insteadDenys Vlasenko2011-03-032-14/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* renamed libreport.so to libreport2.soJiri Moskovcak2011-03-031-4/+4
| | | | | - we have a conflict with old report library which contains file with the same name
* show more useful columns in abrt-gtk; use human-readable time in dir namesDenys Vlasenko2011-02-281-2/+2
| | | | | | | | | | | | For most users, "hostname" is the same for every crash (it is their hostname). Not every problem even has "Application" field ("low on disk space" problem, for example, doesn't), whereas any problem should have "Reason" field. For non-root, it is useful to see which dumps are in /var/spool/abrt (and aren't writable), and which are in $HOME/.abrt/spool. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move ccpp related events to events.d/Jiri Moskovcak2011-02-221-16/+3
| | | | | - so now when the abrt-addon-ccpp is removed it's config will be removed with it, so the rest of abrt and libreport won't be confused
* gui-wizard-gtk: add forward_page_func which skips analyze step when it is ↵Denys Vlasenko2011-02-222-2/+2
| | | | | | missing Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-action-install-debuginfo: disallow overriding paths to writable dirsDenys Vlasenko2011-02-221-17/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* run abrt-action-install-debuginfo.py using trivial sgid wrapperJiri Moskovcak2011-02-212-3/+11
| | | | | Signed-off-by: Jiri Moskovcak <jmoskovc@redhat.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move hostname saving from abrt-action-save-package-data to dump_dirVladimir Vinogradov2011-02-181-26/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* get rid of unused CD_FLAG_SYSNikola Pajkovsky2011-02-161-4/+8
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* fixes for s/release/os_release/g changeDenys Vlasenko2011-02-101-0/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-gtk: make Delete key actually delete the dump dirDenys Vlasenko2011-02-101-2/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* get rid of FILENAME_DESCRIPTION, rename "release" to "os_release"Denys Vlasenko2011-02-104-37/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix problem with daemon shutdown when abrt.conf file is wrongJiri Moskovcak2011-02-071-1/+2
| | | | | | | | | | | - it gives this message abrtd: Loading settings abrtd: abrt.conf: Invalid syntax on line 38 abrtd: Error while initializing daemon process 20610: arguments to dbus_connection_unref() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 2791. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Aborted
* abrt-cli -r DIR: copy non-writable DIR into $HOME/abrt/spoolDenys Vlasenko2011-02-011-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* use run_state->children_count == 0 check for "event not conf'd" conditionDenys Vlasenko2011-02-012-3/+4
| | | | | | | | | | | | run_event_on_FOO() was returning -1 when it found that not even one program was run on the requested event. Which is not a very natural return value: in many cases this isn't an error. This change makes it return 0 in this case. It is ok since now we have run_state->children_count member which can be checked for 0 by those callers which want to detect this condition. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* preparatory changes for abrt-cli local processing changeDenys Vlasenko2011-01-272-7/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove CCommLayerServer[DBus] classesDenys Vlasenko2011-01-219-144/+39
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* s/QuotaExceed/QuotaExceeded/gDenys Vlasenko2011-01-214-6/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Remove CCrashWatcher and CObserver classes; merge libabrt_daemon into abrtdDenys Vlasenko2011-01-218-91/+150
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove plugin.h, move its only macro into into only userDenys Vlasenko2011-01-203-4/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add OPT_LIST mechanism to handle multiply occurring optionsDenys Vlasenko2011-01-204-4/+2
| | | | | | | This allowed to convert abrt-action-bugzilla, abrt-action-rhtsupport and abrt-action-kerneloops to parse_opts() Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* make option handling more regular across all toolsDenys Vlasenko2011-01-204-68/+73
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce and use new helper function list_free_with_freeDenys Vlasenko2011-01-205-25/+15
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* disable SetSettings dbus call codeDenys Vlasenko2011-01-203-33/+38
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* convert abrt-action-save-package-data.cpp to CDenys Vlasenko2011-01-204-8/+15
| | | | | | The conversion is trivial: a few tweaks to one header file Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fixed build against rpm 4.9Jiri Moskovcak2011-01-191-3/+2
| | | | | - we don't use this code, but fixed it anyway, so we don't have to find the fix once we decide to uncomment it
* abrtd: merge pid and lock files into oneDenys Vlasenko2011-01-191-40/+28
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove old plugin machinery. -10k and -1 library dependence in abrtdDenys Vlasenko2011-01-196-395/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move (de)installation of abrt-hook-ccpp into abrt-ccpp service.Denys Vlasenko2011-01-191-10/+1
| | | | | | | | | Init script is packaged and installed with abrt-addon-ccpp package. In order to not install the hook twice, "old" plugin loading in abrtd is disabled (pending deletion of entire "old" plugin machinery). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove [ Cron ] handlingDenys Vlasenko2011-01-175-315/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* replace KerneloopsScanner plugin and dumpoops with abrt-dump-oops, use it in ↵Denys Vlasenko2011-01-174-24/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | abrtd Patch adds new tool: $ abrt-dump-oops Usage: abrt-dump-oops [-vsrdow] FILE Extract oops from syslog/dmesg file -v, --verbose Be verbose -s Log to syslog -r Parse kernel's message buffer before parsing FILE -d Create ABRT dump for every oops found -o Print found oopses on standard output -w Do not exit, watch the file for new oopses It extends dumpoops. Extensions: * it can watch the syslog using -w option (uses inotify) * it can scan dmesg buffer too In this way, it also becomes a replacement for KerneloopsScanner plugin: oops-detecting logic is taken verbatim from KerneloopsScanner source. abrtd is changed to start it if it sees this directive in abrt.conf: [ LogScanners ] abrt-dump-oops = abrt-dump-oops -drw /var/log/messages Default abrt.conf is changed to have such line. Patch doesn't remove KerneloopsScanner plugin and dumpoops binary yet, I will do it in a separate trivial patch. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* preliminary cleanup patchesDenys Vlasenko2011-01-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix a SEGV caused by returning NULL instead of empty hash tableDenys Vlasenko2011-01-131-0/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt_event.conf parser is updated to handleDenys Vlasenko2011-01-131-8/+36
| | | | | | | | | | | | | | | "include GLOB_PATTERN" line which expands GLOB_PATTERN and recurses into every matching file. Another small change makes it possible to have one rule to span lines: our current default abrt_event.conf has sosreport invocation which looks very ugly. Sosreport invocation is rewritten in a much more readable multi-line form now. The comment in src/daemon/abrt_event.conf is modified to explain the recognized syntax. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove C++-ism ssprintf from abrtlib.hDenys Vlasenko2011-01-111-5/+8
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move abrt-action-FOO from /usr/libexec to /usr/binDenys Vlasenko2011-01-114-17/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* 665405 - ABRT's usage of sos does not grab /var/log/messagesNikola Pajkovsky2011-01-051-1/+1
| | | | | | add --only=general --only=x11 Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* extend run_event() to run_event_on_dir_name() and run_event_on_crash_data()Denys Vlasenko2010-12-222-7/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: rename *crash_dump.* -> *crash_data.*Denys Vlasenko2010-12-224-6/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Rename foo_crash_dump_dir -> foo_dump_dirDenys Vlasenko2010-12-152-7/+7
| | | | | | | | | | | | | To be exact, these three functions are renamed: load_crash_data_from_crash_dump_dir create_crash_dump_dir delete_crash_dump_dir Rationale: data structure is called "struct dump_dir", not "struct crash_dump_dir" Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* small fixes to map_string_t conversion suggested by KarelDenys Vlasenko2010-12-131-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename libabrt.so to libreport.soDenys Vlasenko2010-12-091-4/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* create report-libs-devel package; separate out report headersDenys Vlasenko2010-12-091-4/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add abrt_ prefixes to abrt-internal functions in libabrt.soDenys Vlasenko2010-12-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removal of C++isms from libabrt, part 2Denys Vlasenko2010-12-081-12/+16
| | | | | | This patch rewrites a few places where we use C++ strings Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removal of C++isms from libabrt, part 1Denys Vlasenko2010-12-086-221/+152
| | | | | | | | | | | | | This patch converts libabrt usage of C++ map<string, string> to a glib-based container, GHashTable. It is typedef-ed to map_string_h. We can't typedef it to map_string_t, since other parts of ABRT (daemon, cli) still use that name for C++ container. Also, exceptions are removed everywhere. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* This patch changes crash data to use C structures.Denys Vlasenko2010-12-065-102/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The smallest data element is: struct crash_item { char *content; unsigned flags; }; where content is, eh, content, and flags is a bit flag field. crash_data_t is a map of crash_item's, implemented as a pointer to heap-allocated GHashTable. vector_of_crash_data_t is a vector of crash_data_t's, implemented as a pointer to heap-allocated GPtrArray. Most operations have light wrappers around them to hide the nature of the containers. For example, to free vector_of_crash_data, you need to use free_vector_of_crash_data(ptr) instead of open-coding g_ptr_array_free. The wrapper is thin. The goal is not so much to hide the implementation, but more to make it easier to use the correct function. dbus (un)marshalling functions convert crash_item to three-element array of strings, in order to keep compatibility with abrt-gui (python). This can be changed later to use native representation. crash_data_t and vector_of_crash_data_t are represented in "natural" way, no funny stuff there. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>