Help Center/ Huawei Cloud EulerOS/ FAQs/ How Do I Disable SELinux of HCE?
Updated on 2025-09-04 GMT+08:00

How Do I Disable SELinux of HCE?

1. Run getenforce to check the SELinux status. Enforcing indicates SELinux is enabled.

Figure 1 Example of enabled SELinux

2. Open the /etc/selinux/config configuration file, set SELINUX=disabled, save the file, and exit. Run reboot to restart the OS.

Figure 2 Example of disabling SELINUX

3. After the restart, run getenforce to check the SELinux status. If Disabled is displayed, SELinux is disabled.

Figure 3 Example of disabled SELinux