mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 01:12:18 +00:00
e6ba4e4be1
xcatconfig set the running system permissive and wrote SELINUX=disabled into /etc/selinux/config on a Red Hat or openEuler management node. The node lost the SELinux policy of the site during the installation, and the log reported only a warning. Every CI cell that declares SELINUX=enforcing ran its test cases permissive for this reason, and two measurements needed setenforce 1 after the install to get an enforcing node. xCAT::SELinux->xcatconfig_action now returns the mode and asks for no change. xcatconfig reports the mode and leaves the running system and /etc/selinux/config alone. A node that already has SELinux off gets no warning, as before. xCAT-test/unit/xcatconfig_selinux_policy.t fails 10 of its 27 checks on the parent commit. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>