summaryrefslogtreecommitdiff
path: root/net-analyzer/greenbone-security-assistant/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-01-15 15:51:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-01-15 15:51:32 +0000
commit21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch)
treee1810a4b135afce04b34862ef0fab2bfaeb8aeca /net-analyzer/greenbone-security-assistant/files
parent7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff)
gentoo resync : 15.01.2020
Diffstat (limited to 'net-analyzer/greenbone-security-assistant/files')
-rw-r--r--net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch107
-rw-r--r--net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch42
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf31
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.init14
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.logrotate9
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.service19
-rw-r--r--net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d1
7 files changed, 0 insertions, 223 deletions
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch
deleted file mode 100644
index cce885e10e01..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-auth.patch
+++ /dev/null
@@ -1,107 +0,0 @@
---- gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:22:19.297954361 +0300
-+++ gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:27:57.690214371 +0300
-@@ -1366,7 +1366,8 @@
- || (strstr (param_name, "_id")
- == param_name + strlen (param_name) - strlen ("_id"))
- || (strcmp (param_name, "name") == 0
-- && strcasecmp (prev_action, "Run Wizard") == 0)
-+ && (strcasecmp (prev_action, "Run Wizard") == 0
-+ || strcasecmp (next_cmd, "auth_settings") == 0))
- || (strcmp (param_name, "get_name") == 0
- && strcasecmp (next_cmd, "wizard_get") == 0))
- {
-@@ -25984,7 +25976,7 @@
-
- html = response_from_entity (connection, credentials, params, entity,
- (no_redirect && strcmp (no_redirect, "0")),
-- NULL, NULL,
-+ NULL, "auth_settings",
- NULL, "modify_auth",
- "Save Authentication Configuration",
- response_data);
---- gsa-7.0.3/src/html/classic/js/greenbone.js 2018-03-28 16:23:57.000000000 +0300
-+++ gsa-7.0.3/src/html/classic/js/greenbone.js 2019-02-02 03:40:37.162714538 +0300
-@@ -1559,6 +1559,9 @@
- if (reload === 'next') {
- reload_next(response);
- }
-+ else if (reload === 'window') {
-+ location.reload();
-+ }
- },
- function(jqXHR) {
- if (jqXHR.status == 0 && jqXHR.readyState == 0) {
---- gsa-7.0.3/src/html/classic/omp.xsl 2018-03-28 16:23:57.000000000 +0300
-+++ gsa-7.0.3/src/html/classic/omp.xsl 2019-02-02 03:44:28.470599715 +0300
-@@ -36775,7 +36822,8 @@
- <!-- AUTHENTICATION DESCRIPTION -->
-
- <xsl:template match="group" mode="ldapauth">
-- <div class="section-box" id="ldap-box">
-+ <div class="section-box ajax-post" id="ldap-box"
-+ data-button="form #save_button" data-reload="window">
- <form action="/omp" method="post" enctype="multipart/form-data">
- <input type="hidden" name="token" value="{/envelope/token}"/>
- <input type="hidden" name="cmd" value="save_auth"/>
-@@ -36784,6 +36832,15 @@
- <input type="hidden" name="filter" value="{gsa:envelope-filter ()}"/>
- <!-- group name is e.g. of method:ldap -->
- <input type="hidden" name="group" value="{@name}"/>
-+ <!-- Auth type name for next page -->
-+ <input type="hidden" name="name" value="ldap"/>
-+
-+ <div class="error-dialog">
-+ <div class="text-center">
-+ <xsl:value-of select="gsa:i18n ('LDAP authentication config could not be modified.')"/>
-+ </div>
-+ </div>
-+
- <table class="gbntable">
- <tr class="gbntablehead2">
- <td><xsl:value-of select="gsa:i18n ('Setting')"/></td>
-@@ -36838,7 +36895,8 @@
- </tr>
- <tr>
- <td colspan="2" style="text-align:right;">
-- <input type="submit" name="submit" value="{gsa:i18n ('Save')}"/>
-+ <input type="submit" name="submit" id="save_button"
-+ value="{gsa:i18n ('Save')}"/>
- </td>
- </tr>
- </table>
-@@ -36847,7 +36905,8 @@
- </xsl:template>
-
- <xsl:template match="group" mode="radiusauth">
-- <div class="section-box" id="radius-box">
-+ <div class="section-box ajax-post" id="radius-box"
-+ data-button="form #save_button" data-reload="window">
- <form action="/omp" method="post" enctype="multipart/form-data">
- <input type="hidden" name="token" value="{/envelope/token}"/>
- <input type="hidden" name="cmd" value="save_auth"/>
-@@ -36856,6 +36915,15 @@
- <input type="hidden" name="filter" value="{gsa:envelope-filter ()}"/>
- <!-- group name is e.g. of method:radius_connect -->
- <input type="hidden" name="group" value="{@name}"/>
-+ <!-- Auth type name for next page -->
-+ <input type="hidden" name="name" value="radius"/>
-+
-+ <div class="error-dialog">
-+ <div class="text-center">
-+ <xsl:value-of select="gsa:i18n ('Radius authentication config could not be modified.')"/>
-+ </div>
-+ </div>
-+
- <table class="gbntable">
- <tr class="gbntablehead2">
- <td><xsl:value-of select="gsa:i18n ('Setting')"/></td>
-@@ -36890,7 +36958,8 @@
- </tr>
- <tr>
- <td colspan="2" style="text-align:right;">
-- <input type="submit" name="submit" value="{gsa:i18n ('Save')}"/>
-+ <input type="submit" name="submit" id="save_button"
-+ value="{gsa:i18n ('Save')}"/>
- </td>
- </tr>
- </table>
diff --git a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch b/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch
deleted file mode 100644
index 5132e344a798..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-7.0.3-memleak.patch
+++ /dev/null
@@ -1,42 +0,0 @@
---- gsa-7.0.3/src/gsad_omp.c 2018-03-28 16:23:57.000000000 +0300
-+++ gsa-7.0.3/src/gsad_omp.c 2019-02-02 03:12:16.617046562 +0300
-@@ -7737,16 +7738,21 @@
- g_string_append (xml, command_escaped);
- g_free (command_escaped);
-
-+ response = NULL;
- ret = omp (connection, credentials, &response, &entity, response_data,
- command->str);
- g_string_free (command, TRUE);
-+
-+ if (ret)
-+ {
-+ free_entity (entity);
-+ g_string_free (xml, TRUE);
-+ }
-+
- switch (ret)
- {
- case 0:
- break;
-- case -1:
-- /* 'omp' set response. */
-- return response;
- case 1:
- response_data->http_status_code = MHD_HTTP_INTERNAL_SERVER_ERROR;
- return gsad_message (credentials,
-@@ -7770,10 +7776,14 @@
- "/omp?cmd=get_tasks", response_data);
- }
-
-+ if (omp_success (entity) == 0)
-+ set_http_status_from_entity (entity, response_data);
- g_string_append (xml, response);
-
- g_string_append (xml, "</get_aggregate>");
-
-+ free_entity (entity);
-+ g_free (response);
- return xsl_transform_omp (connection, credentials, params,
- g_string_free (xml, FALSE), response_data);
- }
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf b/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf
deleted file mode 100644
index 2c9a62eef811..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsa-daemon.conf
+++ /dev/null
@@ -1,31 +0,0 @@
-# OpenVAS Security Assistant command args
-# man page --> https://www.mankier.com/8/gsad
-
-# e.g. --foreground | e.g. --no-redirect -- > Don't listen port 80 anymore
-OPENVAS_SECURITY_ASSISTANT_OPTIONS="--no-redirect"
-
-# WebUI adress
-OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS="--listen=127.0.0.1"
-
-# WebUI Port
-OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT="--port=9392"
-
-# WebUI Manager Address
-OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS="--mlisten=127.0.0.1"
-
-# WebUI Manager Port
-OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT="--mport=9390"
-
-# TLS Settings
-OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES="--gnutls-priorities=NORMAL"
-
-# If you use reverse proxy you must set OPENVAS_REVERSE_PROXY daemon arg
-# otherwise you will get the below error.
-# ---------------------------------------------------------------
-# The request contained an unknown or invalid Host header.
-# If you are trying to access GSA via its hostname or a proxy,
-# make sure GSA is set up to allow it.
-# ---------------------------------------------------------------
-
-# Reverse Proxy Settings ( e.g. --allow-header-host=subdomain.example.com )
-OPENVAS_REVERSE_PROXY="--allow-header-host="
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.init b/net-analyzer/greenbone-security-assistant/files/gsa.init
deleted file mode 100644
index 2b4636422422..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsa.init
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-name="Greenbone Security Assistant Daemon"
-command="/usr/sbin/gsad"
-command_args="${OPENVAS_SECURITY_ASSISTANT_OPTIONS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS} ${OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT} ${OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES} ${OPENVAS_REVERSE_PROXY}"
-pidfile="/var/run/gsad.pid"
-command_background="true"
-
-depend() {
- after bootmisc
- need localmount net openvas-scanner gvmd
-}
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.logrotate b/net-analyzer/greenbone-security-assistant/files/gsa.logrotate
deleted file mode 100644
index 79e54e854319..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsa.logrotate
+++ /dev/null
@@ -1,9 +0,0 @@
-# logrotate for openvas security agent
-/var/log/openvas/gsad.log {
- daily
- rotate 7
- compress
- missingok
- notifempty
- sharedscripts
-}
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.service b/net-analyzer/greenbone-security-assistant/files/gsa.service
deleted file mode 100644
index bc8c1d9e285c..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsa.service
+++ /dev/null
@@ -1,19 +0,0 @@
-[Unit]
-Description=OpenVAS Manager
-After=network.target
-After=openvas-scanner.service
-After=gvmd.service
-Wants=gvmd.service
-
-[Service]
-Type=forking
-EnvironmentFile=-/etc/openvas/sysconfig/gsa-daemon.conf
-ExecStart=/usr/sbin/gsad $OPENVAS_SECURITY_ASSISTANT_OPTIONS $OPENVAS_SECURITY_ASSISTANT_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_ADDRESS $OPENVAS_SECURITY_ASSISTANT_MANAGER_LISTEN_PORT $OPENVAS_SECURITY_ASSISTANT_GNUTLS_PRIORITIES $OPENVAS_REVERSE_PROXY
-ExecReload=/bin/kill -HUP $MAINPID
-KillMode=mixed
-User=root
-Group=root
-TimeoutSec=1200
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d b/net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d
deleted file mode 100644
index 18e820caec1b..000000000000
--- a/net-analyzer/greenbone-security-assistant/files/gsa.tmpfiles.d
+++ /dev/null
@@ -1 +0,0 @@
-d /var/cache/openvassd 0775