Skip to content

file-ownership: potential improvements #1058

@markuslf

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.

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