Manually configuring SELinux for working with the application
If SELinux couldn't s be configured automatically during the initial setup of the application, or if you declined automatic configuration, you can manually configure SELinux to work with Kaspersky Endpoint Security.
To manually configure SELinux to work with the application:
Switch SELinux to permissive mode:
If SELinux has been activated, run the following command:
# setenforce Permissive
If SELinux was disabled, set the SELINUX=permissive setting in the configuration file / etc / selinux / config and restart the operating system.
Make sure the semanage utility is installed on the system. If the utility is not installed, install the policycoreutils-python or policycoreutils-python-utils package, depending on the package manager.
If you are using a custom SELinux policy instead of the default targeted policy, assign a label to each source executable file of Kaspersky Endpoint Security in accordance with the SELinux policy being used; to do so, run the following commands:
It is recommended to run all the tasks that you plan to run while using Kaspersky Endpoint Security.
Start the graphical user interface if you plan to use it.
Ensure that there are no errors in the audit.log file:
# grep kesl /var/log/audit/audit.log
If there are errors in the audit.log file, create and download a new rule module based on the blocking records in order to fix the errors, and then relaunch all the tasks that you plan to run while using Kaspersky Endpoint Security; to do so, run the following commands:
If new audit messages related to Kaspersky Endpoint Security appear, the file with the rule module file must be updated.
Switch SELinux to blocking mode:
# setenforce Enforcing
If you use a custom SELinux policy, manually assign a label to Kaspersky Endpoint Security source executable files after installing application updates (follow steps 1, 3–8).
You can find more information in the documentation for your operating system.
Configuring SELinux to run the "Start process" task
If SELinux is installed in your operating system in Enforcing mode, starting the Start process task requires additional configuration of SELinux.
To configure SELinux to run the "Start process" task
Switch SELinux to permissive mode:
If SELinux has been activated, run the following command:
# setenforce Permissive
If SELinux was disabled, set the SELINUX=permissive setting in the configuration file / etc / selinux / config and restart the operating system.
Make sure the semanage utility is installed on the system. If the utility is not installed, install the policycoreutils-python or policycoreutils-python-utils package, depending on the package manager.
Start the "Start process" task.
Ensure that there are no errors in the audit.log file:
# grep kesl /var/log/audit/audit.log
If errors are present in the audit.log file, create and load a new rules module based on blocking rules to fix the errors, then run the "Start process" task again.