summaryrefslogtreecommitdiffstats
path: root/src/daemon
Commit message (Collapse)AuthorAgeFilesLines
* abrt_event.conf.5: new manpage. closes #132Denys Vlasenko2011-04-214-32/+82
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* delete ugly parse_conf(), use load_abrt_conf() insteadDenys Vlasenko2011-04-208-221/+10
| | | | | | Therefore moved abrt_conf.* to libreport Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: reload abrt.conf after each poll. Closes 189Denys Vlasenko2011-04-204-18/+28
| | | | | | | | | | | | | | | | | | | | | Can be optimized a bit by checking stat.st_mtime. Currently, every reload looks like this: 14:37:49.551073 open("/etc/abrt/abrt.conf", O_RDONLY) = 13 14:37:49.551229 fstat(13, {st_mode=S_IFREG|0644, st_size=869, ...}) = 0 14:37:49.551393 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f541037f000 14:37:49.551505 read(13, "# With this option set to \"yes\",\n# only crashes in signed packages will be analyzed.\n# the list of "..., 4096) = 869 14:37:49.551709 read(13, "", 4096) = 0 14:37:49.551812 close(13) = 0 14:37:49.552051 open("/etc/abrt/gpg_keys", O_RDONLY) = 13 14:37:49.552183 fstat(13, {st_mode=S_IFREG|0644, st_size=36, ...}) = 0 14:37:49.552338 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f541037f000 14:37:49.552448 read(13, "/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora\n", 4096) = 36 14:37:49.552591 read(13, "", 4096) = 0 14:37:49.552692 close(13) = 0 14:37:49.552792 munmap(0x7f541037f000, 4096) = 0 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename Daemon.cpp to abrtd.cDenys Vlasenko2011-04-207-217/+7
| | | | | | This loses libstdc++, libm and libgcc_s libraries from abrtd Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename Settings.{cpp,h} to abrt_conf.{c,h}Denys Vlasenko2011-04-202-0/+210
| | | | | This makes abrt-action-save-package-data twice as small, amd loses libstdc++.so.6 dependency
* daemon: simplify parsing of settings; remove remaining c++isms in daemonDenys Vlasenko2011-04-204-321/+128
| | | | | | | | This change will not compile, because in C++, void* cannot be automatically cast to char*. Next change renames Settings.cpp to *.c and fixes this. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* run abrt oops log scanner as a separate serviceDenys Vlasenko2011-04-201-4/+4
| | | | | | | | | | | | | | | | In preparation for https://fedorahosted.org/abrt/ticket/189 "abrtd should reload configuration when some of it's config files changes" I would like to stop running abrt-dump-oops as a child of abrtd. We experimented with it: we made abrt-ccpp hook (de)installation a separate service, and in my opinion it ended up a better solution than making it a part of daemon. Among other things, it made abrt and abrt-addon-ccpp packages independent. This change does the same for abrt-dump-oops. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remaned some .cpp files to .c in src/daemon/Denys Vlasenko2011-04-197-19/+19
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: remove unused dbus calls and their support codeDenys Vlasenko2011-04-199-789/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Fix rpm signature check (trac#198)Miroslav Lichvar2011-04-192-3/+3
|
* abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91Denys Vlasenko2011-04-181-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-action-print: add -r option which records reported_toDenys Vlasenko2011-04-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* cleanup: get rid of GetPluginSettings dbus callNikola Pajkovsky2011-04-064-42/+0
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* cleanup: get rid of GetPluginsInfo dbus callNikola Pajkovsky2011-04-064-76/+2
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* abrt-dump-oops: make -d option take a parameter: directory where to create dumpsDenys Vlasenko2011-04-051-1/+1
| | | | | | | Closes #188 "-d should be documented as a root-only, or made to work for user". Also might make testing easier. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rhbz#692465 - Blacklist doesn't workNikola Pajkovsky2011-04-041-2/+8
| | | | | | | | | parse_value() doesn't trim the string. Lest say BlackList = coreutils, mono the parsed list looks like -> 'coreutils', ' mono' Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* all: don't declare variables inside for loopsCosimo Cecchi2011-03-291-3/+7
|
* abrt-action-trim-files: new tool for trimming old debuginfo and debug dumpsDenys Vlasenko2011-03-261-2/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* added xml file for kerneloops reporter, split koops events to a separate fileJiri Moskovcak2011-03-251-8/+0
|
* fixes for missing uid caseDenys Vlasenko2011-03-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* remove FILENAME_INFORMALL and tighten up some loose endsDenys Vlasenko2011-03-255-65/+41
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* make $ABRT_PROG_PREFIX control whether log messages are prefixedDenys Vlasenko2011-03-254-15/+24
| | | | | | | | | | by abrt-action-foo programs. abrtd, abrt-server and abrt-handle-crashdump now have option -p which sets ABRT_PROG_PREFIX=1 for their children and thus makes them emit program name prefixes. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* oops: don't save bogus "executable", and save real "cmdline" instead of ↵Denys Vlasenko2011-03-241-14/+21
| | | | | | bogus one Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* extend dump_dir to allow creating world-readable directoryJiri Moskovcak2011-03-244-10/+17
| | | | - so far used only by kerneloops
* wizard: add keyboard accelerator for "Configure Events" buttonsDenys Vlasenko2011-03-241-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Replace FILENAME_MESSAGE with FILENAME_REPORTED_TO.Denys Vlasenko2011-03-181-1/+1
| | | | | | | | | | | This fixes the problem with abrt-cli not showing unreported bugs and abrt-gui not showing "green lamp" for reported bugs. In general, it introduces a way to record reporting results, such as Bugzilla URL, in dump dir. In the future, this enables such functions as "check BZ status". Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* s:/var/log/abrt.log:/tmp/abrt.log:gDenys Vlasenko2011-03-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrtd: suppress stray messages about non-directories in /var/spool/abrtDenys Vlasenko2011-03-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrtd: heed glib warning about hash table being NULLDenys Vlasenko2011-03-163-9/+10
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Remove deprecated ENABLE_SOCKET_OR_DBUS configuration optionKarel Klic2011-03-161-1/+0
|
* abrt-dump-oops: fix double-free; abrt_event.conf: better report event nameDenys Vlasenko2011-03-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* daemon: run dd_sanitize_mode_and_owner after post-create tooDenys Vlasenko2011-03-151-0/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrtd: do not accept requests to delete directories not in /var/spool/abrt/Denys Vlasenko2011-03-141-1/+11
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Merge branch 'prune-old-gui'Nikola Pajkovsky2011-03-111-4/+6
|\ | | | | | | | | | | * prune-old-gui: remove old python gui override old gui by new one
| * override old gui by new oneNikola Pajkovsky2011-03-111-4/+6
| | | | | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* | make report_Logger configurableDenys Vlasenko2011-03-101-5/+10
|/ | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add -Wwrite-strings everywhereDenys Vlasenko2011-03-091-4/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* make fork_execv_on_steroids capable of setting env vars tooDenys Vlasenko2011-03-081-1/+1
| | | | | | Before, it could only unset them. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* gui-wizard-gtk: add code to export/unexport config variables. UntestedDenys Vlasenko2011-03-071-8/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add saving of username; fix one liners loadingDenys Vlasenko2011-03-041-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* 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>