Configuring exclusions for the File Threat Protection component of Kaspersky Endpoint Security for Linux
To configure exclusions for the File Protection Component using Kaspersky Security Center:
- Open the group policy for editing.
- Go to Essential Threat Protection tab → Exclusion scopes.
- In the list of exclusions, click Add and specify the settings of the new exclusion scope:
- Name:
postfix-spool
- File system:
Local
- Path:
/var/spool/postfix
To finish adding the new exclusion scope, click OK.
- In the list of exclusions, click Add and specify the settings of the new exclusion scope:
- Name:
ksmg-var
- File system:
Local
- Path:
/var/opt/kaspersky/ksmg
To finish adding the new exclusion scope, click OK.
- In the list of exclusions, click Add and specify the settings of the new exclusion scope:
- Name:
ksmg-tmp
- File system:
Local
- Path:
/tmp/ksmgtmp
To finish adding the new exclusion scope, click OK.
- In the list of exclusions, click Add and specify the settings of the new exclusion scope:
- Name:
ksmg-filter
- File system:
Local
- Path:
/tmp/ksmg_filter
To finish adding the new exclusion scope, click OK.
- If you are using Red Hat Enterprise Linux or Rocky Linux, click Add in the list of exclusions and specify the settings for the new exclusion scope:
- Name:
exim-spool
- File system:
Local
- Path:
/var/spool/exim
To finish adding the new exclusion scope, click OK.
- If you are using Ubuntu, click Add in the list of exclusions and specify the settings for the new exclusion scope:
- Name:
exim-spool
- File system:
Local
- Path:
/var/spool/exim4
To finish adding the new exclusion scope, click OK.
- Save the list of exclusions.
- Save your group policy changes.
To configure exclusions for the File Threat Protection component using the command line:
- Save the File Threat Protection task settings to a configuration file using the following command:
kesl-control --get-settings 1 --file <full path to the file>
- Open the created configuration file for editing.
- Add the following lines to the created file:
[ExcludedFromScanScope.item_<item number>]
Path=/var/spool/<
exim for Red Hat Enterprise Linux, Rocky Linux or exim4 for Ubuntu
>
[ExcludedFromScanScope.item_<item number>]
Path=/var/opt/kaspersky/ksmg
[ExcludedFromScanScope.item_<item number>]
Path=/tmp/ksmgtmp
[ExcludedFromScanScope.item_<item number>]
Path=/tmp/ksmg_filter
<item number>
is the sequential number of the ExcludedFromScanScope section, numbering starts from zero.
- Save your changes in the configuration file.
- Import settings from the configuration file to the File Threat Protection task:
kesl-control --set-settings 1 --file <full path to the file>
Page top