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

Remove option <remove_old-diff> #1915

Merged
merged 2 commits into from
Nov 22, 2018
Merged

Remove option <remove_old-diff> #1915

merged 2 commits into from
Nov 22, 2018

Conversation

bah07
Copy link
Contributor

@bah07 bah07 commented Nov 20, 2018

Related issues:

The option <remove_old_diff> is disabled. It becomes a mandatory behavior. In case that for old configurations it appears no warn message is shown, simply continues the execution.

Test:

  • Check configuration with and without tag.
  • Check that the operation of deleting files configured with report_changes is correct. The files are deleted when:
  • The option is removed,
  • The directory stops being monitored and
  • The source files are physically deleted.

@bah07 bah07 added the module/fim File Integrity Monitoring label Nov 20, 2018
@albertomn86 albertomn86 changed the base branch from 3.7 to 3.8 November 21, 2018 09:01
@vikman90 vikman90 force-pushed the dev-dep-remove-old-diff branch from a058f58 to ca7b856 Compare November 22, 2018 14:39
Copy link
Member

@vikman90 vikman90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW this issue also needs documentation.

@@ -759,7 +759,7 @@ int Read_Syscheck(const OS_XML *xml, XML_NODE node, void *configp, __attribute__
const char *xml_registry_ignore = "registry_ignore";
const char *xml_auto_ignore = "auto_ignore";
const char *xml_alert_new_files = "alert_new_files";
const char *xml_remove_old_diff = "remove_old_diff";
const char *xml_remove_old_diff = "remove_old_diff"; // Deprecated since 3.7.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecated since 3.8.0.

merror(XML_VALUEERR, node[i]->element, node[i]->content);
return (OS_INVALID);
}
//Deprecated since 3.7.1, aplied by default...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.8.0 so far...

@vikman90 vikman90 merged commit 0eb5c95 into 3.8 Nov 22, 2018
@vikman90 vikman90 deleted the dev-dep-remove-old-diff branch November 22, 2018 15:36
chemamartinez added a commit that referenced this pull request Nov 23, 2018
chemamartinez added a commit that referenced this pull request Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/fim File Integrity Monitoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants