summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Daemon.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Show error message when abrtd service is run as non-root.Karel Klic2010-04-211-0/+3
| | | | rhbz#584352
* whitespace cleanup, no code changesDenys Vlasenko2010-04-011-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove socket code, it is deadDenys Vlasenko2010-03-231-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* GUI: added action to applet to directly report last crashJiri Moskovcak2010-03-111-3/+9
| | | | Revieved by: Denys Vlasenko <vda.linux@googlemail.com>
* *: UID:UUID -> crash_id conversionDenys Vlasenko2010-03-041-14/+15
| | | | | | | | | | | | | | | | | | | This fixes at least three instances where we did not check whether user is even allowed to report or delete a crash. Also fixes a few cases when root might inadvertently act on (e.g. delete) mote than one crash. Renamed FILENAME_UID to CD_UID - makes more sense this way. Added COL_INFORMALL and CD_INFORMALL. Nuked UID == -1 hacks. Renamed getReport() to start_job on Python side. Dropped a few unused parameters from server -> client dbus signals. Fixed CLI's way of reverencing crashes (see updated help text). Run-tested (GUI and CLI). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-by: Nikola Pajkovsky <npajkovs@redhat.com>
* *: remove all usages of C++ streams (-10k in code size)Denys Vlasenko2010-02-071-2/+1
| | | | | | Also add copyright banners to all files which were missing them Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: fix handling of dupes (weren't deleting dup's directory); better loggingDenys Vlasenko2010-02-051-19/+39
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use .new suffix on new crashdumps; strip it when crashdump is readyDenys Vlasenko2010-02-041-22/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* commentsKarel Klic2010-02-041-2/+3
|
* abrtd: proper fix to autostart problemDenys Vlasenko2010-01-271-9/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: fix Report() dbus call gaping security holesDenys Vlasenko2010-01-211-6/+6
| | | | | | We were blindly trusting the values passed to us Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use get_crash_data_item_content() accessor more widelyDenys Vlasenko2010-01-201-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* split load_crash_data_from_debug_dump from DebugDumpToCrashReportDenys Vlasenko2010-01-201-3/+3
| | | | | | We will need it elsewhere later Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unify "crash data, "crash info" and "crash report" data types. they are the sameDenys Vlasenko2010-01-191-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* preparatory patch with trivial cleanupsDenys Vlasenko2010-01-191-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* GUI: make it so that even non-loaded plugins show up in "Plugins" dialogDenys Vlasenko2010-01-141-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fixing /var/cache/abrt/ permissions by allowing users to read, but not to ↵Karel Klic2010-01-121-7/+7
| | | | change their crash data. Adds abrt user, changes abrt-hook-python to use suid instead of sgid bit (uid=abrt), sets /var/cache/abrt and every dump subdirectory to be owned by abrt user. Read access for users and their own crashes is provided by group (/var/cache/abrt/ccpp-xxxx-xx has user's group).
* *: assorted fixes prompted by security analysis; more to comeDenys Vlasenko2010-01-111-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: cast pids and uigs to long, not intDenys Vlasenko2010-01-111-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* replace plugin enabling via EnabledPlugins by par-plugin Enabled = yes/noDenys Vlasenko2010-01-101-7/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* abrtd: preparatory patch for per-plugin "Enable" codeDenys Vlasenko2010-01-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of git://git.fedorahosted.org/git/abrtKarel Klic2009-12-181-7/+12
|\
| * made s_signal_caught volatileDenys Vlasenko2009-12-171-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * further robustification of signal handlerDenys Vlasenko2009-12-171-3/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * remove unsafe log() from signal handlerDenys Vlasenko2009-12-171-1/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * fix all instances of atoi() usageDenys Vlasenko2009-12-151-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'master' of git://git.fedorahosted.org/git/abrtKarel Klic2009-12-141-6/+3
|\|
| * more "obviously correct" code for secure opening of /dev/nullDenys Vlasenko2009-12-141-6/+3
| | | | | | | | | | | | Old code is not broken, new one merely looks "more obviously correct". Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'master' of git://git.fedorahosted.org/git/abrtKarel Klic2009-12-141-2/+8
|\|
| * abrtd: add comment about ccpp/abrtd raceDenys Vlasenko2009-12-101-0/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * style fixes, no code changesDenys Vlasenko2009-12-101-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * small fix on top of DeleteDebugDump changeDenys Vlasenko2009-12-041-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'master' of git://git.fedorahosted.org/git/abrtKarel Klic2009-12-041-15/+1
|\|
| * simplify code which deletes corrupted debug dumps; kill unused EXCEP_FATALDenys Vlasenko2009-12-041-15/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Proper error message on chown failureKarel Klic2009-12-041-2/+2
|/
* rename CreateReport -> StartJob, GetJobResult -> CreateReportDenys Vlasenko2009-12-031-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hopefully fix rhbz#541854: when we trim the dir, we must delete it from DB tooDenys Vlasenko2009-12-031-1/+2
| | | | | | Also added a more robust code to resis SEGVing if directory doesn't exist. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix rhbz#518422: refuse to start if some required plugins are missingDenys Vlasenko2009-12-021-6/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixes on top of AutoReportUIDs change. run testedDenys Vlasenko2009-11-301-22/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* a few fixes in automatic reporterNikola Pajkovsky2009-11-301-1/+1
|
* Kerneloops are reported automaticky now when AutoReportUIDs = root is in ↵Nikola Pajkovsky2009-11-261-0/+22
| | | | | | Kerneloops.conf Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* hookCCpp: check total dump dir size and delete the largest/oldest oneDenys Vlasenko2009-11-261-52/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupsDenys Vlasenko2009-11-181-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* continuing s/std::string&/char*/gDenys Vlasenko2009-11-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Daemon properly checks /var/cache/abrt attributesKarel Klic2009-11-121-17/+19
|
* remove getSettings from most plugins (inherited one is ok)Denys Vlasenko2009-11-101-5/+6
| | | | | | | | | Also move parse_release() to abrtlib, it's shared among Bugzilla and Catcut. Tested Bugzilla and Catcut, both work. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make "InformAllUsers" crashes be recorded with UID=-1 in dbDenys Vlasenko2009-11-091-13/+0
| | | | | | this makes them show up in GUI again Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify logging a bit. warn_client() is gone, reuse error_msg() for it.Denys Vlasenko2009-11-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make exception handling lighterDenys Vlasenko2009-11-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass replace of const string& params by const char*Denys Vlasenko2009-11-061-16/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>