mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 17:02:15 +00:00
b46826434a
xCAT-selinux is in the default package set of buildrpms.pl, so every target builds it. openEuler 20.03sp4 and 22.03sp4 carry selinux-policy 3.14.2, which defines none of unconfined_server_stream_connectto(), files_map_etc_files() or chronyd_manage_pid_files(). m4 leaves an undefined interface name in its output and checkmodule stops with a syntax error, so rpmbuild fails and the core build for that target publishes no repository at all. SELinux support is EL only. XCAT::BuildUtils::package_skip_reason names the packages an openEuler target does not build, and buildrpms.pl prints each pair it skips. openEuler 24.03sp4 carries selinux-policy 40.7 and does compile the module. It is excluded as well, so no openEuler release ships a package the other releases cannot build. xCAT-server and xCATsn required xCAT-selinux when selinux-policy-targeted was installed, on openEuler too. openEuler defines %openEuler and no %rhel, so the condition now names EL 8 and later and Fedora only. Without this an openEuler management node cannot resolve xCAT-server. xCAT-test/unit/selinux_el_only_scope.t fails on the parent commit. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>