[spampd] Set user/group in service file to avoid executing as root.
bojan
bojan at fedoraproject.org
Tue May 6 22:05:01 UTC 2014
commit 1013fb27eb87cd7c6cd8e458357afdf7960b6977
Author: Bojan Smojver <bojan at rexursive.com>
Date: Wed May 7 08:05:08 2014 +1000
Set user/group in service file to avoid executing as root.
spampd.service | 2 ++
spampd.spec | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/spampd.service b/spampd.service
index 9bb351d..cb85338 100644
--- a/spampd.service
+++ b/spampd.service
@@ -3,6 +3,8 @@ Description=spampd daemon
After=syslog.target network.target
[Service]
+User=spampd
+Group=spampd
EnvironmentFile=/etc/sysconfig/spampd
ExecStart=/usr/sbin/spampd --nodetach --u=spampd --g=spampd $SPAMPD_OPTIONS
diff --git a/spampd.spec b/spampd.spec
index 1075754..d2ba00a 100644
--- a/spampd.spec
+++ b/spampd.spec
@@ -1,7 +1,7 @@
Summary: Transparent SMTP/LMTP proxy filter using spamassassin
Name: spampd
Version: 2.30
-Release: 19%{?dist}
+Release: 20%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm
@@ -95,6 +95,9 @@ indicating it's spam and why.
%changelog
+* Wed May 7 2014 Bojan Smojver <bojan at rexursive.com> - 2.30-20
+- set user/group in systemd service file to avoid executing as root
+
* Fri Apr 25 2014 Bojan Smojver <bojan at rexursive.com> - 2.30-19
- set --maxsize=500 by default to be in line with SA
More information about the scm-commits
mailing list