From 61e322717ea95e4e6a08d3957e57017a2e34acbb Mon Sep 17 00:00:00 2001 From: Christian Fischer Date: Fri, 7 Aug 2020 16:31:35 +0200 Subject: [PATCH 1/2] Change the default OSPD socket path. --- INSTALL.md | 4 ++-- src/manage_sql.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 3d187364f..73cc889c6 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -274,7 +274,7 @@ and should be called after syncing the latter. By default, Manager tries to connect to the default OSPD scanner via the following path: - /tmp/ospd.sock + /var/run/ospd/ospd.sock If this path doesn't match your setup you need to change the socket path accordingly. @@ -284,7 +284,7 @@ Get the UUID of the `OpenVAS Default` scanner: Update the path (example, path needs to be adapted accordingly): - gvmd --modify-scanner= --scanner-host=/var/run/ospd.sock + gvmd --modify-scanner= --scanner-host=/var/run/ospd/ospd-openvas.sock ## Logging Configuration diff --git a/src/manage_sql.c b/src/manage_sql.c index 31e8c21ec..36b146af2 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -87,7 +87,7 @@ /** * @brief Socket of default scanner. */ -#define OPENVAS_DEFAULT_SOCKET "/tmp/ospd.sock" +#define OPENVAS_DEFAULT_SOCKET "/var/run/ospd/ospd.sock" #ifdef DEBUG_FUNCTION_NAMES #include From 70de3ac4f640c481df44ad8382037c801993d4ca Mon Sep 17 00:00:00 2001 From: Christian Fischer Date: Fri, 7 Aug 2020 16:36:13 +0200 Subject: [PATCH 2/2] Add CHANGELOG.md entry. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6cd7b70a..995bc7f49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,6 +65,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Sync SCAP using a second schema [#1111](https://github.com/greenbone/gvmd/pull/1111) - Use error variable in osp_get_vts_version(). [#1159](https://github.com/greenbone/gvmd/pull/1159) - Include unknown preferences when uploading or syncing configs [#1005](https://github.com/greenbone/gvmd/pull/1005) +- Set the default OSPD unix socket path to /var/run/ospd/ospd.sock [#1238](https://github.com/greenbone/gvmd/pull/1238) ### Fixed - Add NULL check in nvts_feed_version_epoch [#768](https://github.com/greenbone/gvmd/pull/768)