Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Conversation

@mlw
Copy link
Contributor

@mlw mlw commented Jan 3, 2024

The command santactl rule --check is merely meant to print primary rule information (either static rule if it exists or what's in the rule database). It is not meant to have any policy applied (either as defined by configuration or hard coded Santa logic that is always enforced).

This PR fixes the rule check output by ensuring policy isn't applied, instead the rule is directly fetched and stringified.

(If a user wants to see how policy would be applied, they must use the santactl fileinfo command which requires a binary path to evaluate.)

Fixes #1261

@mlw mlw added the santactl label Jan 3, 2024
@mlw mlw added this to the 2024.1 milestone Jan 3, 2024
@mlw mlw requested a review from a team as a code owner January 3, 2024 03:28
@mlw mlw merged commit ce2777a into google:main Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

santactl rule --check is broken

2 participants