-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Master-port #49860 selinux support for file.manage #55922
Conversation
Add selinux support to file.managed
Hey, @mchugh19 Looks like this needs to be rebased and have pre-commit run on it. Do you mind doing that? https://docs.saltstack.com/en/latest/topics/development/contributing.html#quickstart |
I'm not sure what you mean. These files have been run through isort and black already. I tried manually running |
I'm not sure either 😂 Pre-commit looks fine and is passing, but there are some other failures that look to be related to this PR. Can you take a look? |
tests were missing a |
re-run pr-windows2019-py3 |
re-run pr-windows2016-py3 |
re-run pr-centos7-py3 |
Ugh. Centos is stuck on
|
Master port of #49860
This looks good to me, but happy to get more eyes on it. See conversation in #49860 for more information
What does this PR do?
Recursion not supported for persist=True on file.get_selinux_context execution module
Add selinux functionality to file.managed
What issues does this PR fix or reference?
#40703 and possibly #1349
New Behavior
Uses file.get_selinux_context and file.set_selinux_context to determine if selinux updates are needed. As mentioned in a ticket #1349, set_selinux_context uses the chcon command, which might not be persistent. Feedback welcome.
Tests written?
Yes - but could always use more eyes