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

Chroot for ossec-logtest #864

Merged
merged 1 commit into from
Jun 21, 2016
Merged

Chroot for ossec-logtest #864

merged 1 commit into from
Jun 21, 2016

Conversation

vikman90
Copy link
Contributor

There is an error when running ossec-logtest to test rules with check_diff, since it doesn't change root directory and tries to create a directory at/queue/diff`.

It's possible to do a workaround and create it at /var/ossec/queue/diff if the binary doens't chroot, but I think the best way is to behave like ossec-analysisd. Also, this way respects the help message:

-D <dir> Directory to chroot into (default: /var/ossec)

At the present, ossec-logtestdoesn't chroot, but only chdir.

@ddpbsd ddpbsd merged commit 1165c65 into ossec:master Jun 21, 2016
@vikman90 vikman90 deleted the logtest_chroot branch June 28, 2016 03:34
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

Successfully merging this pull request may close these issues.

2 participants