summaryrefslogtreecommitdiffhomepage
path: root/debian/patches/use-_keysafe.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/use-_keysafe.patch')
-rw-r--r--debian/patches/use-_keysafe.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/use-_keysafe.patch b/debian/patches/use-_keysafe.patch
new file mode 100644
index 0000000..3cb0aa6
--- /dev/null
+++ b/debian/patches/use-_keysafe.patch
@@ -0,0 +1,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 895fbcf..2e2a140 100644
+--- a/keysafe.service
++++ b/keysafe.service
+@@ -7,8 +7,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