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

Add test to check access to files monitored by FIM while Wazuh has them open #697

Closed
jesusjimsa opened this issue May 8, 2020 · 3 comments · Fixed by #705
Closed

Add test to check access to files monitored by FIM while Wazuh has them open #697

jesusjimsa opened this issue May 8, 2020 · 3 comments · Fixed by #705
Assignees

Comments

@jesusjimsa
Copy link
Contributor

jesusjimsa commented May 8, 2020

Description

This test must monitor a large file (1 GB), perform a modification in the file and rename/delete it. No error should appear in the log and the rename/delete operation should be performed correctly.

Modes

  • scheduled
  • realtime
  • whodata

Platforms

  • Windows
  • Linux
  • macOS
  • Solaris
@jesusjimsa jesusjimsa self-assigned this May 8, 2020
@jesusjimsa jesusjimsa changed the title Add test for permission in large files Add test for access in large files May 8, 2020
@jesusjimsa jesusjimsa changed the title Add test for access in large files Add test for access in files being modified May 8, 2020
@jesusjimsa jesusjimsa changed the title Add test for access in files being modified Add test to check access to files monitored while performing file hashing May 8, 2020
@jesusjimsa jesusjimsa changed the title Add test to check access to files monitored while performing file hashing Add test to check access to files monitored by FIM while Wazuh has them open May 8, 2020
@bah07 bah07 added this to the Sprint 111 - Core milestone May 8, 2020
@jesusjimsa
Copy link
Contributor Author

The test is working correctly in Linux.

When executing the test in Windows, it uses a lot of memory. If the test gets to the limit of the available memory in the system, a MemoryError will be raised. To be executed without any problem, the machine must have at least 4 GB of memory.

@jesusjimsa
Copy link
Contributor Author

The MemoryError has been solved by writing to the file in chunks instead of the entire file at once. After fixing this, the test can be run in systems with 2 GB.

@Deblintrake09
Copy link
Contributor

Status
Reviewing test structure and analyzing fixes

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

Successfully merging a pull request may close this issue.

5 participants