Skip to content

Unexpected santactl fileinfo output when using --filter #1382

Closed
@macjustice

Description

I am working on a way of reporting what binaries on a device are blocked by rule.

Per the usage text for santactl fileinfo, it looked like the --filter option would be the way to go. However, providing --filter Type=Executable --filter Rule=Blocked returned output that included executables without block rules.

To reproduce:

  1. Block an arbitrary binary: sudo santactl rule --block --path /usr/bin/yes
  2. Validate: sudo santactl rule --check --path /usr/bin/yes
  3. Try listing blocked binaries: santactl fileinfo --recursive --filter Type=Executable --filter Rule=Blocked --key Path --key Rule /usr/bin/
    1. output includes every binary in /usr/bin, with Rule: Could not communicate with daemon
    2. Expected output would be just /usr/bin/yes with Rule: Blocked (Binary)

Activity

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

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