Skip to content

aide_cron_check immediately modifies monitored files after aide_init #47

@bparry02

Description

@bparry02

On a brand-new system that has not yet configured aide, if applying the aide role with both aide_init and aide_cron_check set to true, the following events occur:

  1. The aide database is initialized, recording the state of /etc/crontab
  2. The /etc/crontab file is modified

This causes the role to leave the system in a state where aide --check would flag the modification to /etc/crontab.

Consider moving the tasks to edit the /etc/crontab file before any tasks that create or update the aide database.

A workaround would be to run the aide role once with only aide_cron_check set to true, then run it again with both aide_init and aide_cron_check set to true, but this is not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions