Add more file access config options #1128
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IMPORTANT: This PR is only a piece of the overall work to begin supporting user-facing messages when file access operations are denied in order to provide a better experience to users who violate policies. No actual user facing dialogs are presented yet, all deny operations are silent.
This PR adds support for 3 new keys for file access configurations:
EnableSilentMode
: When true, will not show dialogs to the user when the rule is violated (mimicsEnableSilentMode
of the main Santa daemon configuration)EnableSilentTTYMode
: When true, will not print messages to the same TTY as that attached to the executing process when the rule is violated (mimicsEnableSilentTTYMode
of the main Santa daemon configuration)BlockMessage
: When set, will control a custom message that will be displayed to the user (both GUI and TTY) when the rule is violated (mimicsBannedBlockMessage
of the main Santa daemon configuration)