summaryrefslogtreecommitdiffhomepage
path: root/debian/patches/use-_keysafe.patch
blob: 77d9591eaf02ae34f9583ea14c3d0c413a8dac81 (plain)
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: Sean Whitton <spwhitton@spwhitton.name>
Date: Sat, 22 Oct 2016 15:46:03 -0700
Subject: use _keysafe

To avoid clashes with any non-system user accounts or groups.

Forwarded: not-needed
---
 keysafe.init    | 2 +-
 keysafe.service | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/keysafe.init b/keysafe.init
index 4aa1348..3332309 100644
--- a/keysafe.init
+++ b/keysafe.init
@@ -32,7 +32,7 @@ case "$1" in
 		start-stop-daemon --start --quiet --oknodo \
 			--background --no-close \
 			--pidfile "$PIDFILE" --make-pidfile \
-			--chuid keysafe:keysafe \
+			--chuid _keysafe:_keysafe \
 			--exec "$DAEMON" -- --server $DAEMON_PARAMS \
 			> /var/log/keysafe.log
 		log_end_msg $?
diff --git a/keysafe.service b/keysafe.service
index 24eaad2..1a81058 100644
--- a/keysafe.service
+++ b/keysafe.service
@@ -8,8 +8,8 @@ EnvironmentFile=-/etc/default/keysafe
 ExecStart=/usr/bin/keysafe --server $DAEMON_PARAMS
 InaccessiblePaths=/home /etc
 ReadWritePaths=/var/lib/keysafe
-User=keysafe
-Group=keysafe
+User=_keysafe
+Group=_keysafe
 StandardInput=null
 StandardOutput=journal
 StandardError=journal