Hello community, here is the log from the commit of package libopenvas for openSUSE:Factory checked in at Mon Jun 6 11:11:59 CEST 2011.
-------- --- libopenvas/libopenvas.changes 2011-05-27 14:54:58.000000000 +0200 +++ /mounts/work_src_done/STABLE/libopenvas/libopenvas.changes 2011-06-01 20:11:04.000000000 +0200 @@ -1,0 +2,8 @@ +Wed Jun 1 17:55:26 UTC 2011 - [email protected] + +- Update to 4.0.5 + * OpenVAS Libraries will now honor the unscanned_closed_udp preference when + deciding how an unscanned UDP port should be treated. + * Compiler warnings from gcc 4.6 have been addressed. + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- openvas-libraries-4.0-gcc46.patch openvas-libraries-4.0.4.tar.gz New: ---- openvas-libraries-4.0.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libopenvas.spec ++++++ --- /var/tmp/diff_new_pack.73lFoY/_old 2011-06-06 11:11:29.000000000 +0200 +++ /var/tmp/diff_new_pack.73lFoY/_new 2011-06-06 11:11:29.000000000 +0200 @@ -20,14 +20,13 @@ %define soname 4 Name: libopenvas -Version: 4.0.4 -Release: 2 +Version: 4.0.5 +Release: 1 License: GPLv2 Group: Productivity/Networking/Security Url: http://www.openvas.org Source: openvas-libraries-%{version}.tar.gz Patch0: openvas-libraries-4.0-rc4-no_Werror.patch -Patch1: openvas-libraries-4.0-gcc46.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?fedora_version} || 0%{?scientificlinux_version} @@ -154,7 +153,6 @@ %prep %setup -qn openvas-libraries-%{version} %patch0 -%patch1 -p1 %build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_VERBOSE_MAKEFILE=ON -DSYSCONFDIR=%{_sysconfdir} -DLOCALSTATEDIR=%{_localstatedir} -DLIBDIR=%{_libdir} -DBUILD_WITH_LDAP=ON -DCMAKE_BUILD_TYPE=release ++++++ debian.changelog ++++++ --- /var/tmp/diff_new_pack.73lFoY/_old 2011-06-06 11:11:29.000000000 +0200 +++ /var/tmp/diff_new_pack.73lFoY/_new 2011-06-06 11:11:29.000000000 +0200 @@ -1,3 +1,12 @@ +libopenvas (4.0.5-1) unstable; urgency=low + + * New upstream release. + - OpenVAS Libraries will now honor the unscanned_closed_udp preference when + deciding how an unscanned UDP port should be treated. + - Compiler warnings from gcc 4.6 have been addressed. + + -- Stephan Kleine <[email protected]> Wed, 01 Jun 2011 19:56:38 +0200 + libopenvas (4.0.4-1) unstable; urgency=low * New upstream release. ++++++ openvas-libraries-4.0.4.tar.gz -> openvas-libraries-4.0.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openvas-libraries-4.0.4/CHANGES new/openvas-libraries-4.0.5/CHANGES --- old/openvas-libraries-4.0.4/CHANGES 2011-05-04 08:22:37.000000000 +0200 +++ new/openvas-libraries-4.0.5/CHANGES 2011-06-01 15:38:37.000000000 +0200 @@ -1,3 +1,20 @@ +openvas-libraries 4.0.5 (2011-06-01) + +This is the fifth maintenance release of the openvas-libraries 4.0 module for +the Open Vulnerability Assessment System (OpenVAS). + +This release adds a separate control for the handling of unscanned UDP ports and +addresses compiler warnings discovered by Stephan Kleine. + +Many thanks to everyone who has contributed this release: +Stephan Kleine, Matthew Mundell and Michael Wiegand. + +Main changes compared to 4.0.4: +* OpenVAS Libraries will now honor the unscanned_closed_udp preference when + deciding how an unscanned UDP port should be treated. +* Compiler warnings from gcc 4.6 have been addressed. + + openvas-libraries 4.0.4 (2011-05-04) This is the fourth maintenance release of the openvas-libraries 4.0 module for diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openvas-libraries-4.0.4/CMakeLists.txt new/openvas-libraries-4.0.5/CMakeLists.txt --- old/openvas-libraries-4.0.4/CMakeLists.txt 2011-05-04 08:22:37.000000000 +0200 +++ new/openvas-libraries-4.0.5/CMakeLists.txt 2011-06-01 15:38:38.000000000 +0200 @@ -81,7 +81,7 @@ set (CPACK_TOPLEVEL_TAG "") set (CPACK_PACKAGE_VERSION_MAJOR "4") set (CPACK_PACKAGE_VERSION_MINOR "0") -set (CPACK_PACKAGE_VERSION_PATCH "4${SVN_REVISION}") +set (CPACK_PACKAGE_VERSION_PATCH "5${SVN_REVISION}") set (CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") set (CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}") set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CPACK_PACKAGE_VERSION}") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openvas-libraries-4.0.4/ChangeLog new/openvas-libraries-4.0.5/ChangeLog --- old/openvas-libraries-4.0.4/ChangeLog 2011-05-04 08:22:37.000000000 +0200 +++ new/openvas-libraries-4.0.5/ChangeLog 2011-06-01 15:38:37.000000000 +0200 @@ -1,3 +1,39 @@ +2011-06-01 Michael Wiegand <[email protected]> + + Preparing the openvas-libraries 4.0.4 release. + + * CHANGES: Updated. + +2011-05-31 Matthew Mundell <[email protected]> + + Deal with GCC 4.6 warnings. Thanks to Stephan Kleine for original patch. + Backport from trunk r11035. + + * misc/network.c (renice_myself): Check nice return. + + * misc/plugutils.c (plug_get_key): Remove stray variable usage left from + Nessus times. + +2011-05-24 Matthew Mundell <[email protected]> + + * omp/omp.c (omp_get_system_reports): Return status code instead of 1, as + in other functions. Thanks to Stephan Kleine for reporting. + +2011-05-23 Michael Wiegand <[email protected]> + + * misc/plugutils.c: Add support for separate control of + unscanned_closed behavior for UDP ports. + (unscanned_udp_ports_as_closed): New function to honor the + unscanned_closed_udp preference. + (kb_get_port_state_proto): Use unscanned_udp_ports_as_closed instead + of unscanned_ports_as_closed for UDP ports. + +2011-05-04 Michael Wiegand <[email protected]> + + Post release version bump. + + * CMakeLists.txt: Set version to 4.0.5. + 2011-05-04 Michael Wiegand <[email protected]> Preparing the openvas-libraries 4.0.4 release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openvas-libraries-4.0.4/misc/network.c new/openvas-libraries-4.0.5/misc/network.c --- old/openvas-libraries-4.0.4/misc/network.c 2011-05-04 08:22:37.000000000 +0200 +++ new/openvas-libraries-4.0.5/misc/network.c 2011-06-01 15:38:37.000000000 +0200 @@ -25,6 +25,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include <errno.h> #include <sys/types.h> #include <unistd.h> #include <stdarg.h> @@ -133,10 +134,12 @@ if (nice (0) >= 10) return; pid = cpid; + errno = 0; renice_result = nice (1); - // @todo: Check value if renice_result to see if it was successful. - // Keep in mind that even -1 can mean success here; see man page of nice - // for details. + if (renice_result == -1 && errno != 0) + { + fprintf (stderr, "Unable to renice process: %d", errno); + } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openvas-libraries-4.0.4/misc/plugutils.c new/openvas-libraries-4.0.5/misc/plugutils.c --- old/openvas-libraries-4.0.4/misc/plugutils.c 2011-05-04 08:22:37.000000000 +0200 +++ new/openvas-libraries-4.0.5/misc/plugutils.c 2011-06-01 15:38:37.000000000 +0200 @@ -719,6 +719,23 @@ /** + * @brief Report state of preferences "unscanned_closed_udp". + * + * @return 0 if pref is "yes", 1 otherwise. + */ +static int +unscanned_udp_ports_as_closed (struct arglist *prefs) +{ + char *unscanned; + unscanned = arg_get_value (prefs, "unscanned_closed_udp"); + if (unscanned && !strcmp (unscanned, "yes")) + return 0; + else + return 1; +} + + +/** * @param proto Protocol (udp/tcp). If NULL, "tcp" will be used. */ int @@ -738,7 +755,7 @@ return unscanned_ports_as_closed (prefs); else if (!strcmp (proto, "udp") && kb_item_get_int (kb, "Host/udp_scanned") <= 0) - return unscanned_ports_as_closed (prefs); + return unscanned_udp_ports_as_closed (prefs); range = (u_short *) getpts (prange, &num); @@ -1550,9 +1567,8 @@ socketpair (AF_UNIX, SOCK_STREAM, 0, sockpair); if ((pid = fork ()) == 0) { - int tictac = 0; int old, soc; - struct arglist *globals, *preferences = NULL; + struct arglist *globals; close (sockpair[0]); globals = arg_get_value (args, "globals"); @@ -1565,15 +1581,6 @@ arg_set_value (args, "SOCKET", sizeof (gpointer), GSIZE_TO_POINTER (soc)); - if (globals != NULL) - preferences = arg_get_value (globals, "preferences"); - if (preferences != NULL) - { - char *to = arg_get_value (preferences, "plugins_timeout"); - if (to != NULL) - tictac = atoi (to); - } - srand48 (getpid () + getppid () + time (NULL)); /* RATS: ignore */ sig_term (_exit); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/openvas-libraries-4.0.4/omp/omp.c new/openvas-libraries-4.0.5/omp/omp.c --- old/openvas-libraries-4.0.4/omp/omp.c 2011-05-04 08:22:37.000000000 +0200 +++ new/openvas-libraries-4.0.5/omp/omp.c 2011-06-01 15:38:37.000000000 +0200 @@ -2325,7 +2325,7 @@ * @param[out] reports Reports return. On success contains GET_SYSTEM_REPORTS * response. * - * @return 0 on success, 1 on failure, -1 on error. + * @return 0 on success, -1 or OMP response code on error. */ int omp_get_system_reports (gnutls_session_t* session, const char* name, int brief, @@ -2371,5 +2371,5 @@ ret = (int) strtol (status_code, NULL, 10); free_entity (*reports); if (errno == ERANGE) return -1; - return 1; + return ret; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
