2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-20 01:12:18 +00:00
Files
xcat-core/xCAT-test/autotest/bundle
Daniel Hilst cec69be3d2 test(xcat-core): no case measures SELinux on a service node or a statelite node
The selinux cases cover the management node and a compute node. A
hierarchical cluster has a service node, which installs xCAT itself and
serves /install and /tftpboot to its own nodes, and nothing measured it
under SELinux. A statelite node was not measured either, although
node_modes resolves it to disabled on purpose.

selinux_sn_enforcing reads the provisioned service node: getenforce,
the kernel command line, the xcat policy module, the labels of /install,
/tftpboot, /opt/xcat and /xcatpost, a restorecon dry run that must find
nothing to relabel, xcatd active, and no xCAT denial since boot.

selinux_sn_per_node_switch sets noderes.selinux on the service node and
reads the mode out of the kickstart that nodeset writes for it, in all
three directions, and checks that a value on the compute node does not
reach the service node.

selinux_cn_statelite_disabled_by_design asks for enforcing on a
statelite node and requires selinux=0 on its boot configuration, with
nodeset saying why.

selinux_bundle.t now keeps a service-node case out of the
management-node bundle, the same way it keeps a compute-node case out.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-21 10:48:23 -03:00
..
2018-12-11 21:30:32 -05:00
2018-12-11 21:30:32 -05:00