Unexpected santactl fileinfo output when using --filter #1382
Closed
Description
opened on Jul 3, 2024
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:
- Block an arbitrary binary:
sudo santactl rule --block --path /usr/bin/yes
- Validate:
sudo santactl rule --check --path /usr/bin/yes
- Try listing blocked binaries:
santactl fileinfo --recursive --filter Type=Executable --filter Rule=Blocked --key Path --key Rule /usr/bin/
- output includes every binary in /usr/bin, with
Rule: Could not communicate with daemon
- Expected output would be just /usr/bin/yes with
Rule: Blocked (Binary)
- output includes every binary in /usr/bin, with
Metadata
Assignees
Labels
No labels
Activity