Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust cf-support core dump finding to include more CFEngine binary l… #5619

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

craigcomstock
Copy link
Contributor

…ocations

For example, httpd is outside of /var/cfengine/bin but could still coredump and we want to catch that.

…ocations

For example, httpd is outside of /var/cfengine/bin but could still coredump and we want to catch that.
@craigcomstock craigcomstock marked this pull request as draft October 14, 2024 17:27
@cf-bottom
Copy link

Thanks for submitting a PR! Maybe @larsewi can review this?

read -r response
fi
response=${response:-/var/cfengine/bin}
response=${response:-/var/cfengine}
if [ "$response" != "n" ]; then
# file command on core files results in lines like the following which we parse for cf-* binaries
# core: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from '/var/cfengine/bin/cf-key', real uid: 0, effective uid: 0, realgid: 0, effective gid: 0, execfn: '/var/cfengine/bin/cf-key', platform: 'x86_64'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this portion needs more work, we shouldn't parse for cf-* anymore as we might be dealing with httpd or other binaries from /var/cfengine so more research/testing must be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants