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

NRPE segfaults due to include_dir loop #202

Open
seanporterwork opened this issue Nov 9, 2018 · 0 comments
Open

NRPE segfaults due to include_dir loop #202

seanporterwork opened this issue Nov 9, 2018 · 0 comments

Comments

@seanporterwork
Copy link

On ClearLinux 26160 running NRPE 3.2.1 (in the sysadmin-remote bundle), the default configuration is stored in /usr/share/defaults/nrpe.cfg. This file contains one line: include_dir=/etc/nrpe/nrpe.d. If you then have an nrpe.cfg file which also contains the line include_dir=/etc/nrpe/nrpe.d, the program will include the directory the current file is in, which forms an infinite loop and exhausts all the memory allocated to it.
Ideally nrpe would realize that the same directory had been included multiple times and/or that the directory being included contains the config file being parsed and just ignore that directive, but it currently just fails catastrophically.

Let me know if you need more information.

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

No branches or pull requests

1 participant