Symantec AntiVirus for Linux: Building the AutoProtect kernel modules fails on RHEL-based Linux releases 6.3 or newer

book

Article ID: 157123

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

Building the AutoProtect kernel modules fails on RHEL-based release 6.x (6.3 or newer in RHEL, CentOS, Scientific Linux, et al) leaving SAV for Linux (SAVFL) without its crucial AutoProtect defences.

 

CC [M]  /home/admin/Desktop/ap-kernelmodule-1.0.14-13/symev/hnfs.o
/home/admin/Desktop/ap-kernelmodule-1.0.14-13/symev/hnfs.c: In function ‘symev_nfsd4_proc_compound’:
/home/admin/Desktop/ap-kernelmodule-1.0.14-13/symev/hnfs.c:1255: error: implicit declaration of function ‘fh_init’
make[2]: *** [/home/admin/Desktop/ap-kernelmodule-1.0.14-13/symev/hnfs.o] Error 1
make[1]: *** [_module_/home/admin/Desktop/ap-kernelmodule-1.0.14-13/symev] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
make: *** [custom] Error 2

Cause

This failure is caused by the following lines in symev/hnfs.c :
 

...
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33) || defined(RHEL6) // RedHat Enterprise Linux 6 merges some code to 2.6.32
#include <linux/nfsd/nfsfh1.h>
#endif
...

 

Resolution

Modify those lines in symev/hnfs.c so that the enclosing #if directive is commented out:

...
// #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33) || defined(RHEL6) // RedHat Enterprise Linux 6 merges some code to 2.6.32
#include <linux/nfsd/nfsfh1.h>
// #endif
...

You should then be able to build the AutoProtect kernel modules, providing SAVFL with realtime protection against threats.

See also the Guide to building AutoProtect kernel modules for Symantec AntiVirus for Linux 1.0


Applies To

SAV for Linux 1.0.14 (MR14) on RHEL-based releases 6.x -- 6.3 or newer (RHEL, CentOS, Scientific Linux, et al)