Jump to content
Sign in to follow this  
matty0

Установка лёгкого агента 4.0 на CentOS 7.5.1804

Recommended Posts

Это невозможно, да? Судя по https://support.kaspersky.ru/ksv4la#requirements

А в 5.0 уже всё ок?

Или всё же как-то можно 4-ую версию заставить работать? У нас большая инсталляция SVC и KSC, не поддерживающих ЛА 5.0, так просто/быстро обновить их не не выйдет...

[root@localhost ~]# /opt/kaspersky/lightagent/bin/lightagent-setup.pl

Kaspersky Security for Virtualization 4.0 Light Agent for Linux version
4.0.46.8153

Select locale for Kaspersky Security Center events:
1 - de
2 - en
3 - fr
4 - ru
5 - zh-Hans
[2]:
2


Setting up kernel-level real-time protection...


Warning: Failed to find Linux kernel source code in directory default
locations.
Enter another path to source code for your Linux kernel
or type 'cancel' to interrupt the compilation of the kernel-level real-time
protection module: [cancel]:
/usr/src/kernels/3.10.0-862.14.4.el7.x86_64   

>>> Configuring the kernel-level real-time protection module using Linux kernel source code
from directory /usr/src/kernels/3.10.0-862.14.4.el7.x86_64 ...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
CentOS Linux release 7.5.1804 (Core)
checking for linux kernel sources... /usr/src/kernels/3.10.0-862.14.4.el7.x86_64
checking for linux kernel version file... /usr/src/kernels/3.10.0-862.14.4.el7.x86_64/include/generated/utsrelease.h
checking for linux kernel version... 3.10
checking for arch_ptrace... found, address 0
checking for access_process_vm... found, address 0
checking for __ptrace_link... found, address 0
checking for __ptrace_unlink... found, address 0
checking for get_empty_filp... found, address 0
checking for release_open_intent... found, address 0
checking for sys_call_table... found, address 0
checking for kstrdup... found, address 0
checking whether dentry.d_child is available... no
checking whether struct inode_operations have rename2... yes
checking whether struct inode_operations have dentry_open... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating kavmon.h
config.status: creating osdef.h
config.status: creating module.linux/Makefile

>>> Compiling the kernel-level real-time protection module...
Cleaning module.linux
make[1]: Entering directory `/opt/kaspersky/lightagent/src/kernel/module.linux'
make -C /usr/src/kernels/3.10.0-862.14.4.el7.x86_64 SUBDIRS=/opt/kaspersky/lightagent/src/kernel/module.linux clean
make[2]: Entering directory `/usr/src/kernels/3.10.0-862.14.4.el7.x86_64'
  CLEAN   /opt/kaspersky/lightagent/src/kernel/module.linux/.tmp_versions
make[2]: Leaving directory `/usr/src/kernels/3.10.0-862.14.4.el7.x86_64'
rm -f ../bin//lightagent_oas.ko  redirfs Module.symvers Modules.symvers
rm -f kernel.c queue.c cache.c cache.h  kavmon.h  kernel.h  osdef.h  queue.h  util.h
make[1]: Leaving directory `/opt/kaspersky/lightagent/src/kernel/module.linux'
Making link in module.linux
make[1]: Entering directory `/opt/kaspersky/lightagent/src/kernel/module.linux'
make -C /usr/src/kernels/3.10.0-862.14.4.el7.x86_64 SUBDIRS=/opt/kaspersky/lightagent/src/kernel/module.linux modules
make[2]: Entering directory `/usr/src/kernels/3.10.0-862.14.4.el7.x86_64'
  CC [M]  /opt/kaspersky/lightagent/src/kernel/module.linux/module.o
In file included from /opt/kaspersky/lightagent/src/kernel/module.linux/module.c:9:0:
/opt/kaspersky/lightagent/src/kernel/module.linux/module.h:120:21: error: conflicting types for ‘kstrdup’
 static inline char *kstrdup(const char *s, int gfp)
                     ^
In file included from include/linux/bitmap.h:8:0,
                 from include/linux/cpumask.h:11,
                 from ./arch/x86/include/asm/cpumask.h:4,
                 from ./arch/x86/include/asm/msr.h:10,
                 from ./arch/x86/include/asm/processor.h:20,
                 from ./arch/x86/include/asm/cpufeature.h:7,
                 from ./arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:54,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /opt/kaspersky/lightagent/src/kernel/module.linux/module.h:35,
                 from /opt/kaspersky/lightagent/src/kernel/module.linux/module.c:9:
include/linux/string.h:135:14: note: previous declaration of ‘kstrdup’ was here
 extern char *kstrdup(const char *s, gfp_t gfp);
              ^
make[3]: *** [/opt/kaspersky/lightagent/src/kernel/module.linux/module.o] Error 1
make[2]: *** [_module_/opt/kaspersky/lightagent/src/kernel/module.linux] Error 2
make[2]: Leaving directory `/usr/src/kernels/3.10.0-862.14.4.el7.x86_64'
make[1]: *** [lightagent_oas_build] Error 2
make[1]: Leaving directory `/opt/kaspersky/lightagent/src/kernel/module.linux'
make: *** [all] Error 1

Warning: Failed to compile the kernel-level real-time protection module.
[root@localhost ~]# cat /etc/*release*
CentOS Linux release 7.5.1804 (Core) 
Derived from Red Hat Enterprise Linux 7.5 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.5.1804 (Core) 
CentOS Linux release 7.5.1804 (Core) 
cpe:/o:centos:centos:7
[root@localhost ~]# 

 

Share this post


Link to post
Sign in to follow this  

×
×
  • Create New...

Important Information

We use cookies to make your experience of our websites better. By using and further navigating this website you accept this. Detailed information about the use of cookies on this website is available by clicking on more information.