File: Adapt-ospd-openvas.service.patch

package info (click to toggle)
ospd-openvas 22.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,644 kB
  • sloc: python: 14,142; xml: 1,917; makefile: 47; sh: 29
file content (40 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Sophie Brun <sophie@kali.org>
Date: Thu, 15 Oct 2020 10:50:27 +0200
Subject: Adapt ospd-openvas.service

Add the RuntimeDirectory ospd to create the dir /var/un/ospd for the socket and pid
User and group are specific to Debian: _gvm
Keep unix_socket=/run/ospd/ospd.sock (not ospd-openvas.sock)

Forwarded: not-needed
---
 config/ospd-openvas.conf    | 2 +-
 config/ospd-openvas.service | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config/ospd-openvas.conf b/config/ospd-openvas.conf
index 94e5a4d..69d63a4 100644
--- a/config/ospd-openvas.conf
+++ b/config/ospd-openvas.conf
@@ -1,6 +1,6 @@
 [OSPD - openvas]
 log_level = INFO
 socket_mode = 0o770
-unix_socket = /run/ospd/ospd-openvas.sock
+unix_socket = /run/ospd/ospd.sock
 pid_file = /run/ospd/ospd-openvas.pid
 log_file = /var/log/gvm/ospd-openvas.log
diff --git a/config/ospd-openvas.service b/config/ospd-openvas.service
index 6703dd3..a823bc9 100644
--- a/config/ospd-openvas.service
+++ b/config/ospd-openvas.service
@@ -7,7 +7,8 @@ ConditionKernelCommandLine=!recovery
 
 [Service]
 Type=forking
-User=gvm
+User=_gvm
+Group=_gvm
 RuntimeDirectory=ospd
 RuntimeDirectoryMode=2775
 PIDFile=/run/ospd/ospd-openvas.pid