Skip to content

Commit

Permalink
Merge pull request #1238 from cfi-gb/default_ospd_path
Browse files Browse the repository at this point in the history
Change the default OSPD socket path.
  • Loading branch information
bjoernricks authored Aug 10, 2020
2 parents 146b54d + 70de3ac commit 035ba1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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=<uuid of OpenVAS Default scanner> --scanner-host=<install-prefix>/var/run/ospd.sock
gvmd --modify-scanner=<uuid of OpenVAS Default scanner> --scanner-host=<install-prefix>/var/run/ospd/ospd-openvas.sock


## Logging Configuration
Expand Down
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <dlfcn.h>
Expand Down

0 comments on commit 035ba1f

Please sign in to comment.