1

I'm using Fedora 25 which uses abrt to manage my core dumps. Following the documentation I've set "ProcessUnpacked" to "yes", and I can see my corefiles when a program I'm maintaining coredumps. Unfortunately those cores are stored in /var/spool/abrt, which is unsatisfactory to me for a variety of reasons.

I would like to configure abrt to store core files (or the entire coredump info directory) in the current working directory, when it detects that it is processing an unpackaged program. Can someone tell me how to do this? If there's anything special I need to know to keep selinux happy, I'd appreciate that info as well.

4

1 回答 1

0

我实际上建议您将系统配置为使用coredumpctl。请参阅https://fedoraproject.org/wiki/Changes/coredumpctl以了解在 Fedora 26 中将此设置为默认设置的计划。现在将其设置为系统上的默认设置很容易:

sudo systemctl disable --now abrt-ccpp.service
sudo systemctl enable --now abrt-journal-core.service

您可能会发现 coredumpctl 管理工具很方便。如果您根本不想要这个,请禁用上述两个服务并将文件替换/usr/lib/sysctl.d/50-coredump.conf/dev/null. (和/或以其他方式设置/proc/sys/kernel/core_pattern为文件名,如默认的core.)

于 2017-05-08T17:50:30.353 回答