Skip to content

Comments

Chroot for ossec-logtest#864

Merged
ddpbsd merged 1 commit intoossec:masterfrom
wazuh:logtest_chroot
Jun 21, 2016
Merged

Chroot for ossec-logtest#864
ddpbsd merged 1 commit intoossec:masterfrom
wazuh:logtest_chroot

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