LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2013, 04:10 PM   #1
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Rep: Reputation: Disabled
How to make a compilation to fix COMODO antivirus


Hi. I'm trying to install COMODO antivirus but the avflt didn't succeed. So I manually downloaded that piece and am now trying to install it. But during the past many hours I haven't had any luck. The manual can be found here: "http://www.redirfs.org/svn/redirfs/tags/avflt-0.6/src/avflt/INSTALL".
That page tells to use a syntax like "make -C /lib/modules/`uname -r`/build M=`pwd` \EXTRA_CFLAGS=-I<full path to the redirfs dir> modules". What I understand the command is like this in my system:
"sudo make -C /lib/modules/3.8.0-25-generic/build M=/home/user \EXTRA_CFLAGS=-I/home/user/Downloads/avflt-0.6 modules".

But it doesn't work. I guess I misunderstood some of the syntax.
Does anybody know what to do?

Thanks in advance!

Last edited by cogitans; 06-25-2013 at 11:27 AM.
 
Old 06-24-2013, 04:47 PM   #2
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Some output that might help in solving the question:

ls -l /lib/modules/3.8.0-25-generic/build
lrwxrwxrwx 1 root root 39 Jun 6 23:30 /lib/modules/3.8.0-25-generic/build -> /usr/src/linux-headers-3.8.0-25-generic
----------------------------------------
ls -l /usr/src/linux-headers-3.8.0-25-generic
total 928
drwxr-xr-x 3 root root 4096 Jun 24 12:48 arch
lrwxrwxrwx 1 root root 31 Jun 6 23:29 block -> ../linux-headers-3.8.0-25/block
lrwxrwxrwx 1 root root 32 Jun 6 23:30 crypto -> ../linux-headers-3.8.0-25/crypto
lrwxrwxrwx 1 root root 39 Jun 6 23:30 Documentation -> ../linux-headers-3.8.0-25/Documentation
lrwxrwxrwx 1 root root 33 Jun 6 23:30 drivers -> ../linux-headers-3.8.0-25/drivers
lrwxrwxrwx 1 root root 34 Jun 6 23:30 firmware -> ../linux-headers-3.8.0-25/firmware
lrwxrwxrwx 1 root root 28 Jun 6 23:30 fs -> ../linux-headers-3.8.0-25/fs
drwxr-xr-x 5 root root 4096 Jun 24 12:48 include
lrwxrwxrwx 1 root root 30 Jun 6 23:30 init -> ../linux-headers-3.8.0-25/init
lrwxrwxrwx 1 root root 29 Jun 6 23:30 ipc -> ../linux-headers-3.8.0-25/ipc
lrwxrwxrwx 1 root root 32 Jun 6 23:30 Kbuild -> ../linux-headers-3.8.0-25/Kbuild
lrwxrwxrwx 1 root root 33 Jun 6 23:30 Kconfig -> ../linux-headers-3.8.0-25/Kconfig
drwxr-xr-x 2 root root 4096 Jun 24 12:48 kernel
lrwxrwxrwx 1 root root 29 Jun 6 23:30 lib -> ../linux-headers-3.8.0-25/lib
lrwxrwxrwx 1 root root 34 Jun 6 23:30 Makefile -> ../linux-headers-3.8.0-25/Makefile
lrwxrwxrwx 1 root root 28 Jun 6 23:30 mm -> ../linux-headers-3.8.0-25/mm
-rw-r--r-- 1 root root 925769 Jun 6 23:30 Module.symvers
lrwxrwxrwx 1 root root 29 Jun 6 23:30 net -> ../linux-headers-3.8.0-25/net
drwxr-xr-x 3 root root 4096 Jun 24 21:28 pwd
lrwxrwxrwx 1 root root 33 Jun 6 23:30 samples -> ../linux-headers-3.8.0-25/samples
drwxr-xr-x 7 root root 4096 Jun 24 12:48 scripts
lrwxrwxrwx 1 root root 34 Jun 6 23:30 security -> ../linux-headers-3.8.0-25/security
lrwxrwxrwx 1 root root 31 Jun 6 23:30 sound -> ../linux-headers-3.8.0-25/sound
lrwxrwxrwx 1 root root 31 Jun 6 23:30 tools -> ../linux-headers-3.8.0-25/tools
lrwxrwxrwx 1 root root 32 Jun 6 23:30 ubuntu -> ../linux-headers-3.8.0-25/ubuntu
lrwxrwxrwx 1 root root 29 Jun 6 23:30 usr -> ../linux-headers-3.8.0-25/usr
lrwxrwxrwx 1 root root 30 Jun 6 23:30 virt -> ../linux-headers-3.8.0-25/virt
----------------------------------
ls -l /home/kenneth/Downloads/avflt-0.6
total 1024
-rw-r--r-- 1 kenneth kenneth 10127 Apr 9 2010 avflt_check.c
-rw-r--r-- 1 kenneth kenneth 5059 Mar 30 2010 avflt_data.c
-rw-r--r-- 1 kenneth kenneth 4272 Mar 30 2010 avflt_dev.c
-rw-r--r-- 1 kenneth kenneth 5009 May 20 2010 avflt.h
-rw-r--r-- 1 kenneth kenneth 1737 Mar 30 2010 avflt_mod.c
-rw-r--r-- 1 kenneth kenneth 6724 Mar 30 2010 avflt_proc.c
-rw-r--r-- 1 kenneth kenneth 5023 Mar 30 2010 avflt_rfs.c
-rw-r--r-- 1 kenneth kenneth 6025 Mar 30 2010 avflt_sysfs.c
-rw-r--r-- 1 kenneth kenneth 1484 May 20 2010 CHANGELOG
-rw-r--r-- 1 kenneth kenneth 35147 Mar 31 2010 COPYING
-rw-r--r-- 1 kenneth kenneth 1465 Apr 21 2009 INSTALL
-rw-r--r-- 1 kenneth kenneth 126 Nov 3 2008 Makefile
-rw-r--r-- 1 root root 925769 Jun 24 21:11 Module.symvers
-rw-r--r-- 1 kenneth kenneth 847 Mar 31 2010 README
 
Old 06-24-2013, 05:48 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

http://www.redirfs.org/tiki-index.php
$ git clone git://www.redirfs.org/git/fhrbata/redirfs.git
$ cd redirfs/src/
$ make : The module avflt.ko is created. ( redirfs/src/avflt/avflt.ko ).
 
Old 06-25-2013, 02:04 AM   #4
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. I really like it. It seems very easy - maybe a bit too easy.

This is the end of the output I get when I follow the directions:

...
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-25-generic'
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-25-generic'
make[2]: *** No rule to make target `/usr/src/linux-headers-3.8.0-25-generic/arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [archheaders] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-25-generic'
make: *** [modules] Error 2

How can this be solved?
 
Old 06-25-2013, 05:42 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 4 .

Better update your kernel / linux-headers : Those two must be an exact match.

Which OS are you using ? Name and version, please.
 
Old 06-25-2013, 05:50 AM   #6
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
This is a completely fresh install of Linux Mint 15. I updated everything and that includes apt-get dist-upgrades.

I just followed this piece of guide which finally is kind of understandable and easy:
http://www.support4world.com/general...s-for-linux-os

"Install module
# make -C /lib/modules/`uname -r`/build M=`pwd` modules_install

Load redirfs.ko module
# modprobe redirfs"

It doesn't seem like it does the trick, though. But at least I was able to execute the commands without any errors...

By the way: some posts tells that 'dcache_lock' is NOT used any more and can be deleted so the compilation is able to complete. The post doesn't say how to delete it and I have absolutely no idea about how to do it (I guess I have to modify some heavy comfiguration-file).

Last edited by cogitans; 06-25-2013 at 05:54 AM.
 
Old 06-25-2013, 07:58 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I'm not really clear about why you are trying to compile comodo (or why you need an antivirus but that's another issue). I went to the commodo website here and it offers me a perfectly nice package for my distro (Debian) and my architecture (Amd64). I notice that it offers a package for Mint as well. So my question: why not avoid the hassle and simply install the package and be done with it?
jdk
 
Old 06-25-2013, 08:18 AM   #8
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
That would be the preferable way of doing it. Actually it IS the way I did it.

The problem is that the protection in realtime needs to be "on". And according to several guides online the user needs to install "redirf" manually to obtain the full protection.

The program has a setting "security level" which can be set to "on access", too. But I'm having trouble trusting that setting when a whole lot of posts online tells me that I need to compile the "redirf" manually.

When I try to download testfiles from
http://www.eicar.org/85-0-Download.html

the program doesn't interrupt. I'm even able to open the files when I've downloaded them (the on-access-function ought to stop this). It's first if I do a manually scanning of the files the program tells me that 5 files are infected.

If I open the program then an icon to the far left is red with a white cross over it. Just below it states: "Filesystem filterdriver is not loaded". Yet another indication of the realtime-protection is NOT on.

Conclusion: on-access-protection is not working yet.

Last edited by cogitans; 06-25-2013 at 08:25 AM.
 
Old 06-25-2013, 09:46 AM   #9
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I have no idea what "redirf" is (not rediff, I presume). So I'll let you get on with it.
jdk

Last edited by jdkaye; 06-25-2013 at 09:54 AM.
 
Old 06-25-2013, 10:06 AM   #10
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Well, redirfs is the thing that makes the protection realtime, I guess. I downloaded it in te initial step. Now I found it here, too (with the same guide on how to do it):
http://free.avg.com/us-en/129026

I tried to do what is stated at the buttom of this page, too:
https://forums.comodo.com/comodo-ant...6.5.html;wap2=

But nothing seems to accomplish the task of making the protection of the Antivirus to realtime. That's why I wanted to compile the stuff manually so I would fix the problem at a low level.
 
Old 06-25-2013, 11:26 AM   #11
cogitans
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Solution

Ah, I fixed it now.

On
https://forums.comodo.com/comodo-ant...-t86415.0.html
I followed this:
"after times try to fix now it work ,
1) :
change first line of 3 file : /opt/COMODO/load_cmdagent.sh, /opt/COMODO/load_cmgdeamon.sh, /opt/COMODO/load_cav.sh form : #!/bin/shto #!/bin/bash
2) :
add too line

bash /opt/COMODO/load_cmdagent.sh start
bash /opt/COMODO/load_cmgdaemon.sh start

to file : /etc/init.d/boot.local

reboot ad see result"

After a reboot I open COMODO again. Now there's an icon in the left side of the GUI instead of some crazy characters. It said that an entire scanning hadn't been completed yet. So I did it.

This scan found the Eicar-files I had created. It found these, too:
/opt/cxoffice/lib/wine/fakedlls/winewrapper.exe
/usr/lib/i386-linux-gnu/wine/fakedlls/iexplore.exe

After I fixed those files an icon of a green shield is shown in the left side of the GUI.

So I guess the issue is fixed now. Normally I wouldn't modify those files without knowing what it would do. But this time it was a success.

Thanks for your kind effort of support, though.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NS 2 compilation error: make: *** No rule to make target ‚??VERSION‚??, needed by ‚??gen/ve Marz22 Linux - Newbie 8 11-21-2011 03:20 AM
[SOLVED] Kernel compilation: make vs make-kpkg derchris Ubuntu 1 03-15-2011 11:25 AM
Make is not for auto compilation only ... rite??? tuxfood Linux - Software 2 04-26-2005 06:14 PM
Kernel compilation (make rpm) Thetargos Red Hat 0 08-31-2003 04:35 PM
Make, Gcc And Mysql Compilation JAMESBEATTY Linux - Software 1 11-05-2002 09:35 AM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration