You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjusted RPM packaging to be avoid failed installs when selinux-policy version is not sufficient
We have two fallback strategies:
1) try to install a cfengine-enterprise-unconfined selinux module
2) instruct user to install semanage and run label-binaries-unconfined.sh script
Ticket: ENT-12980
Changelog: title
(cherry picked from commit 190c974)
cf_console echo"warning: cfengine-enterprise semodule install failed, will attempt to install cfengine-enterprise-unconfined instead. \
15
+
The install failure should be examined in /var/log/CFEngine-Install.log and any issues reported as bugs at https://northerntech.atlassian.net/jira/software/c/projects/CFE/issues/."
cf_console echo"warning: cfengine-enterprise-unconfined semodule failed to install. As a last attempt you can install the semanage program (probably policycoreutils-python-utils package) and run $PREFIX/selinux/label-binaries-unconfined.sh."
19
+
else
20
+
cf_console echo"info: cfengine-enterprise-unconfined semodule is installed. This allows CFEngine binaries to run unconfined which is not ideal. Please report issues with default cfengine-enterprise selinux module."
21
+
fi
25
22
fi
26
23
if /usr/sbin/selinuxenabled;then
27
24
/usr/sbin/load_policy
@@ -33,7 +30,7 @@ if [ -x /bin/systemctl ]; then
33
30
# This is important in case any of the units have been replaced by the package
cf_console echo"warning: cfengine-enterprise semodule install failed, will attempt to install cfengine-enterprise-unconfined instead. \
130
+
The install failure should be examined in /var/log/CFEngine-Install.log and any issues reported as bugs at https://northerntech.atlassian.net/jira/software/c/projects/CFE/issues/."
cf_console echo"warning: cfengine-enterprise-unconfined semodule failed to install. As a last attempt you can install the semanage program (probably policycoreutils-python-utils package) and run $PREFIX/selinux/label-binaries-unconfined.sh."
134
+
else
135
+
cf_console echo"info: cfengine-enterprise-unconfined semodule is installed. This allows CFEngine binaries to run unconfined which is not ideal. Please report issues with default cfengine-enterprise selinux module."
0 commit comments