mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 09:22:17 +00:00
9b469b68d5
xcatconfig recorded no SELinux mode at the first install, so an enforcing management node left site.selinux unset and its nodes were provisioned with SELinux disabled. At the first install, xcatconfig now sets site.selinux to enforcing when the management node is enforcing, and to disabled when it is permissive or disabled. xCAT::SELinux->install_default makes the decision. An existing site.selinux value stays, and an upgrade does not set it. xcatconfig does not change the SELinux mode of the management node. With the existing value ignored, 12 checks of xcatconfig_selinux_policy.t fail. With a permissive mode recorded as permissive, 4 checks fail. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>