summaryrefslogtreecommitdiffstats
path: root/src/hooks
Commit message (Collapse)AuthorAgeFilesLines
* add abrt-ccpp systemd service (trac#288)Miroslav Lichvar2011-06-092-0/+16
|
* move code from ccpp initscript to abrt-install-ccpp-hookMiroslav Lichvar2011-06-092-1/+101
| | | | It will be used by systemd service.
* split libreport to a separate packageJiri Moskovcak2011-06-081-2/+4
|
* abrt-hook-ccpp: need to include sys/utsname.hDenys Vlasenko2011-06-071-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: never pass %h corename spec and avoid passing %e if possibleDenys Vlasenko2011-06-071-9/+19
| | | | | | This closes bz#679720 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: added a TODO comment. No code changesDenys Vlasenko2011-05-231-0/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hook: truncate coredump in PWD to ulimit -cHATAYAMA Daisuke2011-05-181-2/+2
| | | | | | | | | | | | | If MakeCompatCore = yes, coredumps are generated in user's current working directory for compatibility with the original kernel coredumper. This patch fixes the difference between ABRT and the original that: original kernel coredumper truncates coredump to ulimit -c, not to (ulimit-c - 1). Signed-off-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: catch SIGTRAP too. closes #125Denys Vlasenko2011-04-201-3/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* delete ugly parse_conf(), use load_abrt_conf() insteadDenys Vlasenko2011-04-203-9/+41
| | | | | | Therefore moved abrt_conf.* to libreport Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91Denys Vlasenko2011-04-181-12/+23
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: simpler way to pass old core patternDenys Vlasenko2011-04-181-2/+17
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-action-trim-files: new tool for trimming old debuginfo and debug dumpsDenys Vlasenko2011-03-261-13/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* extend dump_dir to allow creating world-readable directoryJiri Moskovcak2011-03-241-1/+1
| | | | - so far used only by kerneloops
* add -Wwrite-strings everywhereDenys Vlasenko2011-03-092-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* implement load_event_config_data. Untested.Denys Vlasenko2011-03-082-1/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Revert "renamed libreport.so to libreport2.so"Karel Klic2011-03-031-1/+1
| | | | | This is not needed at the end. This reverts commit ef96cd431369b2cf0dd640a0bb66be4fb029b9c0.
* renamed libreport.so to libreport2.soJiri Moskovcak2011-03-031-1/+1
| | | | | - we have a conflict with old report library which contains file with the same name
* dump_dir API: rename dd_dir field to dd_dirnameDenys Vlasenko2011-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* 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>
* fix owner, group and access permissions for /proc/<pid>/[maps,smaps] fileNikola Pajkovsky2011-02-231-2/+4
| | | | | | | Before owner and group were root:root with 000 permission. Now it is abrt:<owner> and permissions is set to 640 Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* gui-wizard-gtk: add forward_page_func which skips analyze step when it is ↵Denys Vlasenko2011-02-221-1/+1
| | | | | | missing Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: use common file name buffer for /proc/PID/maps and ↵Denys Vlasenko2011-02-181-11/+9
| | | | | | /proc/PID/smaps Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* copy /proc/<pid>/[map,smap] files into crash dirNikola Pajkovsky2011-02-181-1/+16
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* 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>
* minor cleanup in python handlerJiri Moskovcak2011-01-241-1/+0
| | | | - removed unused import subprocess
* remove dumpoops and KerneloopsScanner pluginDenys Vlasenko2011-01-172-152/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* trivial: more uniform -v option helpDenys Vlasenko2011-01-131-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move abrt-action-FOO from /usr/libexec to /usr/binDenys Vlasenko2011-01-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* pass old pattern to ccpp hook and use itDenys Vlasenko2011-01-061-29/+108
| | | | | | | | | | | | | | | | | | | | | | | abrtd: instead of "|/usr/libexec/abrt-ccpp-hook DEBUG_DUMPS_DIR %p %s %u %c", sets coredump handler to "|/usr/libexec/abrt-ccpp-hook DEBUG_DUMPS_DIR %s %c %p %u %g %t %h %e OLD_PATTERN" abrt-ccpp-hook: expands OLD_PATTERN using values of %s %c %p %u %g %t %h %e and uses it as a name of "compat coredump". Patch has a feature which prevents usage of kernel-truncated OLD_PATTERN: it is passed as hex string *with terminating NUL* (encoded as 00). If ccpp hook doesn't see 00, it refuses to use OLD_PATTERN and uses string "core" instead. Run tested. On a new kernel, passes up to 27 char long old pattern. Longer patterns are still truncated. This may be improved in future kernels. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* PyHook: ignore SystemExit exception rhbz#636913Jiri Moskovcak2011-01-051-2/+4
| | | | | | - SystemExit is not an error, so ABRT should ignore it - see http://docs.python.org/library/exceptions.html#exceptions.SystemExit for more details
* Rename foo_crash_dump_dir -> foo_dump_dirDenys Vlasenko2010-12-151-2/+2
| | | | | | | | | | | | | 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>
* rename libabrt.so to libreport.soDenys Vlasenko2010-12-091-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* create report-libs-devel package; separate out report headersDenys Vlasenko2010-12-091-3/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add abrt_ prefixes to abrt-internal functions in libabrt.soDenys Vlasenko2010-12-081-3/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* removal of C++isms from libabrt, part 1Denys Vlasenko2010-12-081-1/+0
| | | | | | | | | | | | | 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-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* preparatory patch for future factoring out of headers for reportlibDenys Vlasenko2010-11-261-2/+2
| | | | | | Some files and functions are renamed, no logic changes. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* reorganize librariesDenys Vlasenko2010-11-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does not change any code per se, it renames libABRTfoo -> libabrt_bar and moves a few functions around. After the patch, we are left with the following libs: libabrt - the stuff shared among most of abrt (like xmalloc, logging) libabrt_daemon - only daemon-related things are here (should probably be just moved into daemon - later) libabrt_dbus - daemon, cli and applet use this libabrt_web - abrt-action-foo where foo deals with network/web/ftp/... As a result, we have following reductions in dependent libs: /usr/libexec/abrt-hook-ccpp: linux-vdso.so.1 => () - libABRTUtils.so.0 => /usr/lib64/libABRTUtils.so.0 () + libabrt.so.0 => /usr/lib64/libabrt.so.0 () libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 () - libdbus-1.so.3 => /lib64/libdbus-1.so.3 () - libpthread.so.0 => /lib64/libpthread.so.0 () - librt.so.1 => /lib64/librt.so.1 () - libdl.so.2 => /lib64/libdl.so.2 () /usr/libexec/abrt-action-upload: linux-vdso.so.1 => () libtar.so.1 => /usr/lib64/libtar.so.1 () libcurl.so.4 => /usr/lib64/libcurl.so.4 () - libABRTdUtils.so.0 => /usr/lib64/libABRTdUtils.so.0 () - libABRTUtils.so.0 => /usr/lib64/libABRTUtils.so.0 () + libabrt.so.0 => /usr/lib64/libabrt.so.0 () libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 () - libdbus-1.so.3 => /lib64/libdbus-1.so.3 () Similar savings are in almost every abrt-action-foo. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Cleanup. Remove last vestiges of AnalyzerActionsAndReporters.Denys Vlasenko2010-11-181-2/+0
| | | | | | Also: made one function static, made dd_delete() call dd_close(). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: fix a case when open_user_core returns 0 instead of -1 on errorDenys Vlasenko2010-11-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move inc/ and lib/ to src/. No code changesDenys Vlasenko2010-11-151-6/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move files from lib/plugins to src/pluginsJiri Moskovcak2010-11-101-1/+1
|
* abrt-hook-ccpp.cpp -> abrt-hook-ccpp.cDenys Vlasenko2010-11-042-2/+4
| | | | | | Pure rename, no code changes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove C++ isms from abrt-hook-ccppDenys Vlasenko2010-11-041-180/+169
| | | | | | | Patch removes try {...} and deindents former large try block; and deletes unnecessary includes. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-hook-ccpp: do not SEGV if /proc/PID/exe can not be readlink'edDenys Vlasenko2010-11-041-29/+35
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* reduce usage of daemon's library in non-daemon partsDenys Vlasenko2010-10-251-1/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* change dd_create API to return dd pointer (no need to dd_init it separately)Denys Vlasenko2010-10-151-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix my embarrassing error (check for equality is strncmp == 0!)Denys Vlasenko2010-10-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* whitespace fixDenys Vlasenko2010-10-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* better name for abrt-FOO coredumpsDenys Vlasenko2010-10-131-2/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>