Fixes Bad fapolicyd Rule-Specifications for AWS CLI v2#639
Merged
Conversation
This updated automation will, in the absence of any `fapolicyd` rules for the AWS CLI (v2) place a pristine rule-file at: /etc/fapolicyd/rules.d/80-aws.rules With the contents: allow perm=any all : path=/usr/local/bin/aws allow perm=any all : dir=/usr/local/aws-cli/v2/ allow perm=any comm=aws : dir=/var/tmp/' If any `fapolicyd` rules for the AWS CLI (v2) already exist: * Their content will be aggregated with the "no already-defined" rules content * The aggregated rules will be deduplicated * The aggregated, deduplicated rules will be writtn to the .../80-aws.rules file **NOTE**: if any existing rule-files exist and have bad content, that content will be carried forward into the 80-aws.rules file. As such, any already-existing, `fapolicyd`-breaking rules for AWS CLI v2 will continue to exist after the formula runs and the `fapolicyd` configuration will continue to be broken
lorengordon
reviewed
Jun 11, 2026
lorengordon
reviewed
Jun 11, 2026
lorengordon
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #638
As noted in the commit-message for 8272c1f:
Similarly, if any other
.rulesfile in the/etc/fapolicyd/rules.ddirectory are broken, when this formula causes thefapolicyd.serviceto be restarted, the service will go into an error-state.