Security-Enhanced Linux (SELinux)#
Security-Enhanced Linux (SELinux) is a set of patches to the Linux kernel and various utilities that provide mandatory access control to major subsystems of a node. See https://en.wikipedia.org/wiki/Security-Enhanced_Linux for general discussion of SELinux.
The ClusterWareAI ™ platform supports SELinux on the head nodes and compute nodes.
SELinux On Compute Nodes#
For Red Hat RHEL and CentOS compute nodes, the root file systems created by the
cw-modimg tool include SELinux support as part of the
installation of the @core Yum group. During the boot process the
mount_rootfs script loads the SELinux policy before switching root much
like the standard dracut based initramfs. The default cmdline in the boot
configurations created through cw-add-boot-config (including the DefaultBoot
boot configuration) contains enforcing=0, thereby placing all compute nodes
in SELinux "permissive" mode. Only remove this option once you have completed
testing to confirm that your applications runs as expected with SELinux in
"enforcing" mode.
Note
Rocky 10 compute nodes do not use the rwram boot style due to compatibility issues with SELinux. If you are using el10 compute nodes, update the _boot_style reserved attribute to another style. If you leave the boot style unset or set it to rwram explicitly, the boot style automatically converts to roram instead. See Node Boot Style for details.
SELinux on compute nodes may be disabled through command line arguments or by
changing the contents of the node's /etc/selinux/config configuration file.
Refer to distro-provided documentation for details.
SELinux On Head Nodes#
On head nodes, SELinux is detected to be in "enforcing" mode at both installation and service run time. To switch SELinux from "enforcing" to "permissive" mode, refer to the documentation for your operating system. If this switch is made while the clusterware service is running, restart the service:
sudo systemctl restart clusterware