Bug 208753

Summary: security/openvas-manager: openvasmd startup fails
Product: Ports & Packages Reporter: kwinkelman
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description kwinkelman 2016-04-12 18:47:43 UTC
The openvasmd service from openvas-manager-6.0.8_2 does not start correctly. It fails with a socket bind error (from openvasmd.log):

md   main:WARNING:2016-04-12 17h58.17 utc :1744: Failed to bind manager socket: Invalid argument

This is on 10.3-RELEASE.

Steps to reproduce:

1. Start openvasmd service.
2. Note that service is not running.
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2016-04-12 20:14:59 UTC
Created attachment 169261 [details]
patch

Can you try this patch for security/openvas-manager?
Comment 2 kwinkelman 2016-04-13 13:08:38 UTC
This solved the issue. The service is now running and listening on the appropriate socket.
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-04-13 18:43:20 UTC
A commit references this bug:

Author: tijl
Date: Wed Apr 13 18:43:11 UTC 2016
New revision: 413228
URL: https://svnweb.freebsd.org/changeset/ports/413228

Log:
  Add a patch to pass the size of struct sockaddr_in or sockaddr_in6 to
  bind(2) instead of sockaddr_storage.  It doesn't accept the latter even
  though it's big enough.

  PR:		208753
  Tested by:	kwinkelman@mcclatchy.com

Changes:
  head/security/openvas-manager/Makefile
  head/security/openvas-manager/files/patch-src-openvasmd.c