Package: postgrey
Version: 1.36-5.1

After upgrading to Buster, I started getting the following error when issuing "/etc/init.d/postgrey reload" (I am using sysvinit):

start-stop-daemon: matching only on non-root pidfile /var/run/postgrey.pid is insecure

After a little searching, I found related/similar bugs 921016 and 921557. Based upon the resolution of those bugs, I've created the attached patch that applies the same logic to the postgrey init.d script to fix the error.

--
Justin Pasher
--- postgrey.org	2014-10-24 17:39:13.000000000 -0500
+++ postgrey	2019-08-06 11:59:19.688154906 -0500
@@ -94,7 +94,7 @@
 	# restarting (for example, when it is sent a SIGHUP),
 	# then implement that here.
 	#
-	start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE
+	start-stop-daemon --user $DAEMON_USER --stop --signal 1 --quiet --pidfile $PIDFILE
 	return 0
 }
 

Reply via email to