File: adapt-config-files.patch

package info (click to toggle)
gvmd 26.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,192 kB
  • sloc: ansic: 139,230; sh: 4,171; xml: 1,860; python: 301; makefile: 24
file content (49 lines) | stat: -rw-r--r-- 1,327 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
41
42
43
44
45
46
47
48
49
From: Sophie Brun <sophie@kali.org>
Date: Wed, 14 Oct 2020 09:07:15 +0200
Subject: Adapt config files for Debian

Last-Update: 2025-08-13
Forwarded: not-needed

Adapt config files for Debian:
- gvmd.service: we use Debian specific user and group _gvm (instead of
  gvm).
- logrotate: keep the Debian config of logrotate for gvmd
---
 config/gvmd.logrotate.in | 4 ++--
 config/gvmd.service.in   | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/config/gvmd.logrotate.in b/config/gvmd.logrotate.in
index 6b863d6..cdce60b 100644
--- a/config/gvmd.logrotate.in
+++ b/config/gvmd.logrotate.in
@@ -4,7 +4,7 @@ ${GVM_LOG_DIR}/gvmd.log {
 	notifempty
 	sharedscripts
 	copytruncate
-	su gvm gvm
-	create 0640 gvm gvm
+	su _gvm _gvm
+	create 0640 _gvm _gvm
 }
 
diff --git a/config/gvmd.service.in b/config/gvmd.service.in
index 12f5116..3ce730f 100644
--- a/config/gvmd.service.in
+++ b/config/gvmd.service.in
@@ -7,11 +7,12 @@ ConditionKernelCommandLine=!recovery
 
 [Service]
 Type=forking
-User=gvm
+User=_gvm
+Group=_gvm
 PIDFile=${GVMD_PID_PATH}
 RuntimeDirectory=gvmd
 RuntimeDirectoryMode=2775
-ExecStart=${SBINDIR}/gvmd --osp-vt-update=/run/ospd/ospd-openvas.sock --listen-group=gvm
+ExecStart=${SBINDIR}/gvmd --osp-vt-update=/run/ospd/ospd.sock --listen-group=_gvm
 Restart=always
 TimeoutStopSec=10