Skip to content

file-ownership: potential improvements #1058

Description

@markuslf

Currently the plugin only checks owner and group, but not file permissions. CIS benchmarks always check both together. A --permissions extension or a separate file-permissions plugin would close this gap.

Additional points to consider:

  • Files that do not exist are silently skipped, both for default and user-supplied paths. When a user explicitly passes --filename, a missing file could be reported as WARN instead of being silently ignored.
  • For directories like /etc/cron.d or /etc/sudoers.d, only the directory itself is checked, not its contents. A recursive mode could catch ownership issues on files within those directories.

Activity

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

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