-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fixes #19746: Move SELinux policy application into postinst script #3803
Fixes #19746: Move SELinux policy application into postinst script #3803
Conversation
restorecon /opt/rudder/bin/rudder-relayd | ||
restorecon -R /var/rudder/lib | ||
restorecon -R /var/rudder/cfengine-community/ppkeys | ||
restorecon -R /var/rudder/share |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to detect that this changed ? restorecon on /var/rudder/share can be painfully slow
# Ensure inventory directories context is set by resetting | ||
# their context to the contexts defined in SELinux configuration, | ||
# including the file contexts defined in the rudder-relay module | ||
restorecon -R /var/rudder/inventories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to detect that this changed ? restorecon on /var/rudder/inventories can be painfully slow
PR updated with a new commit |
PR updated with a new commit |
# including the file contexts defined in the rudder-relay module | ||
# | ||
# Test current context for big folders | ||
if ! ls -Z /var/rudder/inventories/ | head -n1 | grep -q public_content_rw_t; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
OK, squash merging this PR |
17b4aa2
to
655ec9c
Compare
https://issues.rudder.io/issues/19746