How do I switch an NSP cluster between SELinux modes?

Purpose

Perform this procedure to change an SELinux-enabled NSP cluster between permissive and enforcing mode.

Steps
 
1 

Log in as the root user on the NSP cluster node.


2 

Open a console window.


3 

Enter the following:

# cd /opt/nsp/nsp-deployer/tools/selinux/tools/bin ↵


4 

Do one of the following:

  • Enter the following to switch to permissive mode:

    # ./selinuxenable.sh -p ↵

    The SELinux mode is set to permissive.

  • Enter the following to switch to enforcing mode:

    # ./selinuxenable.sh -e ↵

    The SELinux mode is set to enforcing.

End of steps