To install ACC with SELinux, follow any of the options below.
Option 1
To install ACC with RHEL 8 SELinux in "Enforcing" mode, perform the steps below:
- Run the following commands:
# semanage fcontext -a -e /lib/modules /usr/local/mcafee/solidcore/kmod
# restorecon -Rv /usr/local/mcafee/solidcore/kmod/
- Follow the onscreen prompts to install ACC on your RHEL 8 server.
Option 2
ACC Linux also supports SELinux in Permissive mode. In this mode, the SELinux policy isn't enforced and access isn't denied.
Denials are logged for actions that would have been denied if run in the enforcing mode and not configured.
To set SELinux in Permissive mode, use one of the following methods:
- Edit the SELinux main configuration file: /etc/selinux/config
- Set SELINUX=permissive
- Reboot your system after the change.
- Run the following command:
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
- To verify that the above command is successful, run the command below:
$ cat /etc/selinux/config | grep SELINUX= | grep -v ^#
The output must display
SELINUX=permissive
Option 3
If the above options don't work, disable SELinux and reboot and verify that ACC can be enabled.
To permanently disable SELinux, use one of the following methods:
- Edit the main configuration file of SELinux here: /etc/selinux/config
- Set SELINUX=disabled
- Reboot your system after you make the change.
- Run the following command:
sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
- To verify that the above command was successful, run the command below:
$ cat /etc/selinux/config | grep SELINUX= | grep -v ^#
The output must display
SELINUX=disabled
For more information about SELinux, see
Red Hat Documentation.