Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359705 - net-analyzer/openvas-4.0 version bump
Summary: net-analyzer/openvas-4.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 3 votes (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
: 298307 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-21 08:08 UTC by montjoie
Modified: 2011-10-10 08:40 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuilds for openvas-4 (openvas4_ebuilds.tar.gz,4.14 KB, application/gzip)
2011-03-21 08:11 UTC, montjoie
Details
OpenVAS 4.0 meta package (openvas-4.0.ebuild,638 bytes, text/plain)
2011-04-13 20:23 UTC, Joaquim Uchoa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description montjoie 2011-03-21 08:08:06 UTC
net-analyzer/openvas 4.0 was released March 17th, 2011
There is no ebuild for it in portage yet.


Reproducible: Always
Comment 1 montjoie 2011-03-21 08:11:09 UTC
Created attachment 266687 [details]
ebuilds for openvas-4

Theses ebuilds adds different openvas compoments
openvas-administrator
openvas-gsd
openvas-manager
openvas-cli
openvas-gsa
openvas-libraries
openvas-scanner

I have added the option (via use flag restricted) to confined openvas as a non root user.
Comment 2 Joaquim Uchoa 2011-04-13 20:21:16 UTC
I had OpenVas 3.0 in my system. I'v tried a update, but got the following errors:

libopenvas_nasl.a(nasl_scanner_glue.c.o): In function `script_get_preference_file_content': nasl_scanner_glue.c:(.text+0xf92): undefined reference to `get_plugin_preference_file_content' nasl_scanner_glue.c:(.text+0xfaa): undefined reference to `get_plugin_preference_file_size'

I've solved the problem uninstalling old openvas libraries and tools before instaling 4.0: 

# emerge --unmerge net-analyzer/openvas-libraries net-analyzer/openvas-client net-analyzer/openvas-scanner


I've made a meta package openvas-4.0 and will post here
Comment 3 Joaquim Uchoa 2011-04-13 20:23:39 UTC
Created attachment 269863 [details]
OpenVAS 4.0 meta package

This is a openvas meta package to made more easy the compilation of all components in OpenVAS 4.0. Obviously, you will need the other ebuilds.
Comment 4 Anton Bolshakov 2011-04-29 21:50:56 UTC
It is in the pentoo overlay now, with some fixes. Any further suggestions are welcome
http://trac.pentoo.ch/browser/portage/trunk/net-analyzer/openvas*
Comment 5 Joaquim Uchoa 2011-05-31 18:43:36 UTC
Just to inform:

I had problems compiling openvas-libraries with MAKEOPTS="-j5" in a Core i5. No problems using MAKEOPTS="-j1"

Problem was 
ld: cannot find -lopenvas_misc
Comment 6 Anton Bolshakov 2011-06-01 05:06:24 UTC
(In reply to comment #5)
> Just to inform:
> 
> I had problems compiling openvas-libraries with MAKEOPTS="-j5" in a Core i5. No
> problems using MAKEOPTS="-j1"
> 

Can you be more specific? Which ebuild/version?.. have you tried to compile it manually? I have core5/amd64, compiles fine here.
Comment 7 Joaquim Uchoa 2011-06-06 14:58:21 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Just to inform:
> > 
> > I had problems compiling openvas-libraries with MAKEOPTS="-j5" in a Core i5. 
> > No problems using MAKEOPTS="-j1"
> > 
> 
> Can you be more specific? Which ebuild/version?.. have you tried to compile it
> manually? I have core5/amd64, compiles fine here.

My problem was with 
net-analyzer/openvas-libraries-4.0.3
sys-devel/make-3.8.2
sys-devel/gcc-4.4.5

To me, this implies a bad Makefile... Some objects need others... With MAKEOPTS="-j5", gcc will try to compile 5 packages at the same time... And that crash occurs... with -j1, no problem, because makefile grants correct order...

Note: there is openvas-libraries-4.0.5 in OpenVAS site. So maybe this is ok at now?
Comment 8 Anton Bolshakov 2011-06-06 20:35:22 UTC
(In reply to comment #7)

I have backported a fix from 4.0.4 library 6 weeks ago in the pentoo overlay.
Here it is if you want to apply it manually:
http://trac.pentoo.ch/browser/portage/trunk/net-analyzer/openvas-libraries/files/openvas-libraries-4.0.3_cmake.patch

Better yet run:
 layman -a pentoo

ps. Montjoie, thank you for the initial ebuilds and very clever path hacks.
Comment 9 Blu3 2011-06-24 17:00:18 UTC
added 'pentoo' on 2011-Jun-24

initial thoughts

1) steps #3 and #4 of the net-analyzer/openvas ebuild should reflect that usernames will collide
2) step #5 should offer better cert meta management
3) for step #6, /etc/init.d/openvassd refers to "/usr/lib/openvas" which doesn't exist, /var/lib/openvas?
4) step #7, directory /var/lib/openvas/mgr needs to be created first
5) step #9 also refers to "/usr/lib/openvas", again edited to /var/lib/openvas
6) step #10 needs to indicate port 9392; https://localhost:9392/
7) logins fail, not as per above?
Comment 10 Blu3 2011-06-24 18:39:10 UTC
continuation using the openvas-check-setup script

1) /var/lib/openvas/mgr/tasks.db should be mode 600 after being created
2) openvasmd wasn't started, this fixes the prior login failure
3) as with older versions of openvas, rc-status always indicates that openvasd crashed
4) /etc/init.d/openvasad, also refers to "/usr/lib/openvas"
Comment 11 Blu3 2011-06-24 20:47:49 UTC
dev-texlive/texlive-latexextra needs to be added as a dependency. otherwise you get zero byte PDF reports.


[...]
! LaTeX Error: File `comment.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

http://seclists.org/openvas/2010/q1/336
Comment 12 Anton Bolshakov 2011-06-26 04:06:01 UTC
I have just submitted the next pack of fixes (and see more to come)
http://trac.pentoo.ch/changeset/2411

all issues should be fixed except "6)". 
gsad       2343   root    4u  IPv4 252286      0t0  TCP *:https (LISTEN)

Please double check and come back with more suggestions ;-)
Comment 13 Hanno Böck gentoo-dev 2011-10-09 17:10:09 UTC
*** Bug 298307 has been marked as a duplicate of this bug. ***
Comment 14 Hanno Böck gentoo-dev 2011-10-09 17:37:05 UTC
I've now initially committed openvas 4 ebuilds.

For now, I'm not installing doxygen-generated docs. I may add that later if people need it.

I'm also not using an openvas-user, like the pentoo ebuilds do - it's a lot of hassle and I'm not sure it's worth it.

Please open new bugs for any issues you may have.
Comment 15 montjoie 2011-10-10 08:40:30 UTC
It is why in the initial ebuilds I have put a restricted use flag for people who dont want another service under root user.
Just let the choice to people to choose between facility (openvas as root) and some security (openvas restricted under openvas user).