Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3006.x] Ensure quoted filespec when using egrep to allow for regex with selinux #65524

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

dmurphy18
Copy link
Contributor

What does this PR do?

Ensure that a quoted named filespec is used when searching the output of 'semanage fcontext -l' with egrep so ensure that regex named values are interpreted correctly.

What issues does this PR fix or reference?

Fixes: #65340

Previous Behavior

Various regex names were confused with each other, preventing subsequent regex name values from being added.

New Behavior

Various regex names are no longer confused with each other, allowing subsequent regex name values to be added.

Remove this section if not relevant

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@dmurphy18 dmurphy18 requested a review from a team as a code owner November 9, 2023 00:39
@dmurphy18 dmurphy18 requested review from Ch3LL and removed request for a team November 9, 2023 00:39
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Ensure quoted filespec when using egrep to allow for regex with selinux [3006.x] Ensure quoted filespec when using egrep to allow for regex with selinux Nov 9, 2023
@dmurphy18
Copy link
Contributor Author

This PR supersedes PR #65341

twangboy
twangboy previously approved these changes Nov 9, 2023
tests/pytests/unit/modules/test_selinux.py Outdated Show resolved Hide resolved
tests/pytests/unit/modules/test_selinux.py Outdated Show resolved Hide resolved
tests/pytests/unit/modules/test_selinux.py Outdated Show resolved Hide resolved
@s0undt3ch s0undt3ch merged commit ee75a65 into saltstack:3006.x Nov 14, 2023
521 checks passed
@dmurphy18 dmurphy18 deleted the fix_65340 branch July 19, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants