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

Save agentless state #350

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Save agentless state #350

merged 2 commits into from
Jun 8, 2020

Conversation

xr09
Copy link
Contributor

@xr09 xr09 commented Jun 1, 2020

This PR fixes #349 by adding the agentless dir to our list of persistent locations.

@xr09 xr09 self-assigned this Jun 1, 2020
@xr09 xr09 marked this pull request as draft June 1, 2020 10:27
@xr09 xr09 marked this pull request as ready for review June 1, 2020 10:52
@xr09 xr09 requested review from manuasir, jm404 and Zenidd June 1, 2020 10:53
@xr09
Copy link
Contributor Author

xr09 commented Jun 5, 2020

Since the complete data volume is being granted rw permissions for the group it is required to undo that action for the scripts/binaries inside agentless dir, since agentlessd process won't execute these as a security measure.

wazuh_1          | 2020/06/05 16:24:08 ossec-agentlessd: ERROR: At wpopenv(): file '/var/ossec/agentless/ssh_generic_diff' has write permissions.
wazuh_1          | 2020/06/05 16:24:08 ossec-agentlessd: ERROR: Expect command not found (or bad arguments) for 'ssh_generic_diff'.

On 489bd01 these permissions were reverted to its original state.

@jm404 jm404 merged commit 146dbff into devel Jun 8, 2020
@jm404 jm404 deleted the bugfix-349-agentless-monitoring branch June 8, 2020 06:50
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