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

Fixes #19746: Move SELinux policy application into postinst script #3803

Conversation

amousset
Copy link
Member

restorecon /opt/rudder/bin/rudder-relayd
restorecon -R /var/rudder/lib
restorecon -R /var/rudder/cfengine-community/ppkeys
restorecon -R /var/rudder/share
Copy link
Member

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
Copy link
Member

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

@amousset
Copy link
Member Author

PR updated with a new commit

@amousset
Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Copy link
Member

@ncharles ncharles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@Normation-Quality-Assistant
Copy link
Contributor

OK, squash merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant force-pushed the arch_19746/move_selinux_policy_application_into_postinst_script branch from 17b4aa2 to 655ec9c Compare August 10, 2021 12:01
@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 655ec9c into Normation:master Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants