Comodo Antivirus on Linux – Configuration – RedirFS kernel modules ( CentOS )

Background

Let us see whether we can successfully configure Comodo AV on our CentOS Linux box.

The configuration tool that that we will be attempting to use is called /opt/COMODO/post_setup.sh.

 

Error Message

Unfortunately on running /opt/COMODO/post_setup.sh, we received an error message.

The error message reads

Image

Textual


Build the RedirFS kernel modules for real-time protection...

Then linux kernel source or linux kernel headers for your current kernel version 4.18.0-383.el8.x86_64 can not be found.
Please install the kernel source or kernel headers for 4.18.0-383.el8.x86_64, then run this script again.
/opt/COMODO/post_setup.sh: line 415: make: command not found
/opt/COMODO/post_setup.sh: line 416: make: command not found
modprobe: FATAL: Module redirfs not found in directory /lib/modules/4.18.0-383.el8.x86_64

RedirFS kernel modules installation failed.

Remediation

Outline

  1. Installation
    • DNF
      • List Product
      • Install Product
      • Inquire Product
  2. Configure
    • Comodo AV

Installation

DNF

List Product

Objective

Determine whether our targeted package is already installed.

BTW, the name of our intended is kernel-headers.

Syntax

sudo dnf list [binary]

Sample

sudo dnf list kernel-headers

Output
Image

Textual
 
>sudo dnf list kernel-headers
[sudo] password for dadenijiLocal: 
Last metadata expiration check: 0:02:30 ago on Wed 17 Aug 2022 06:42:38 PM PDT.
Available Packages
kernel-headers.x86_64                                                     4.18.0-408.el8                                                     baseos
>

Explanation

Our package is marked “available“.

 

Install Product

Objective

Attempt to install our package ( kernel-headers).

We will be using the dnf tool to perform the installation.

Syntax

sudo dnf install [binary]

Sample

sudo dnf -y install kernel-headers

Output
Image

Textual
 

>sudo dnf -y install kernel-headers
[sudo] password for dadenijiLocal: 
Last metadata expiration check: 0:16:15 ago on Wed 17 Aug 2022 06:42:38 PM PDT.
Dependencies resolved.
=============================================================================================================================================
 Package                              Architecture                 Version                                Repository                    Size
=============================================================================================================================================
Installing:
 kernel-headers                       x86_64                       4.18.0-408.el8                         baseos                       9.8 M

Transaction Summary
=============================================================================================================================================
Install  1 Package

Total download size: 9.8 M
Installed size: 5.2 M
Downloading Packages:
kernel-headers-4.18.0-408.el8.x86_64.rpm                                                                     1.5 MB/s | 9.8 MB     00:06    
---------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                        1.4 MB/s | 9.8 MB     00:07     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                     1/1 
  Installing       : kernel-headers-4.18.0-408.el8.x86_64                                                                                1/1 
  Verifying        : kernel-headers-4.18.0-408.el8.x86_64                                                                                1/1 
Installed products updated.

Installed:
  kernel-headers-4.18.0-408.el8.x86_64                                                                                                       

Complete!

Inquire Product

Syntax

sudo dnf list [binary]

Sample

sudo dnf list kernel-headers

Output
Image

Textual
 

>sudo dnf list kernel-headers
Last metadata expiration check: 0:19:44 ago on Wed 17 Aug 2022 06:42:38 PM PDT.
Installed Packages
kernel-headers.x86_64 4.18.0-408.el8 @baseos
>

Explanation

Our package is marked “installed“.

 

Configuration

Comodo

Post Install Script

Syntax

/opt/COMODO/post_setup.sh

Sample

echo YES | sudo /opt/COMODO/post_setup.sh

Output
Image

 

Textual

Build the RedirFS kernel modules for real-time protection...

Then linux kernel source or linux kernel headers for your current kernel version 4.18.0-383.el8.x86_64 can not be found.
Please install the kernel source or kernel headers for 4.18.0-383.el8.x86_64, then run this script again.
make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules
make[1]: *** /lib/modules/4.18.0-383.el8.x86_64/build: No such file or directory. Stop.
make: *** [Makefile:3: all] Error 2
make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules_install
make[1]: *** /lib/modules/4.18.0-383.el8.x86_64/build: No such file or directory. Stop.
make: *** [Makefile:8: install] Error 2
modprobe: FATAL: Module redirfs not found in directory /lib/modules/4.18.0-383.el8.x86_64

RedirFS kernel modules installation failed.

The cmdagent stopped successfully!
The cmdagent started successfully!
The cmgdaemon stopped successfully!
The cmgdaemon started successfully!

COMODO Antivirus is successfully configured, you can start it from Menu or Desktop.

>

Explanation

It is a bit easy to miss it within the hoopla that our Comodo services ( cmdagent and cmgdaemon ) restarted successfully.

Yet a careful read suggests failures on a couple of important steps.

The failing steps are:-

 


make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules

 


make -C /lib/modules/`uname -r`/build M=/tmp/driver/redirfs modules_install

 

Thankfully, we received informing error messages.

For the compilation, our error reads:-


make[1]: *** /lib/modules/4.18.0-383.el8.x86_64/build: No such file or directory. Stop.

For the install, our error reads:-


modprobe: FATAL: Module redirfs not found in directory /lib/modules/4.18.0-383.el8.x86_64

 

Summary

Who would have thought?

But, you in fact need a working knowledge of the C language to install an AV on Linux.

You need to have make installed.

Kernel headers.

And, God knows what else.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s