-
Notifications
You must be signed in to change notification settings - Fork 1k
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
/var/ossec path is hardcoded in several places #24
Comments
This a large problem and something we need to fix, but this is going to require a fair amount of changes over a lot of code. But saying that its a problem that we plan to address. |
The two files referenced in the original issue:
These are contrib files. They don't really get compiled and installed in the same way much of the C code does. I haven't really found anywhere in the C code where paths are hard coded but I don't doubt that they exist. You could fix this semi easily by changing these two contrib files to having a default path hard coded as a single variable but then have https://github.com/ossec/ossec-hids/blob/master/install.sh#L757 Not the greatest solution ever but since OSSEC doesn't really make use of the typical |
I have a fix for util.sh but need to back out a different commit before I submit a pull request. |
@mstarks01 sounds like you were close to having a PR for this. Any update? |
Completed in #237 |
Sometimes it is required for ossec to be installed in a non-standard location, such as /opt/ossec. This can be done by setting USER_DIR in preloaded-vars.conf prior to configuring/compiling.
The problem is that there are a couple locations in which the /var/ossec path is hardcoded, and does not obey the USER_DIR configuration variable. I'm including a summary of the instances I was able to find below.
bin/util.sh
bin/ossec-batch-manager.pl
The text was updated successfully, but these errors were encountered: