From acdf5e87d35192ac34aba09606d9376e6a415b56 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Jun 28 2011 09:51:31 +0000 Subject: do not run vnstatd as the root user but as the vnstat user (#711995) --- diff --git a/vnstat.spec b/vnstat.spec index a6636c1..8432357 100644 --- a/vnstat.spec +++ b/vnstat.spec @@ -1,7 +1,7 @@ Summary: Console-based network traffic monitor Name: vnstat Version: 1.11 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Daemons @@ -38,6 +38,9 @@ touch -r cfg/vnstat.conf{,.new} touch -r examples/init.d/fedora/vnstat{,.new} %{__mv} -f examples/init.d/fedora/vnstat{.new,} +# do not run vnstatd as the root user but as the vnstat user (#711995) +sed -i -e "s,daemon,daemon --user vnstat ,g" examples/init.d/fedora/vnstat + # Use -p everywhere, -s nowhere %{__sed} -i -e "s,install \(-s \)\?,install -p ," Makefile @@ -129,6 +132,9 @@ fi %attr(-,vnstat,vnstat)%{_localstatedir}/lib/%{name} %changelog +* Tue Jun 28 2011 Adrian Reber - 1.11-2 +- do not run vnstatd as the root user but as the vnstat user (#711995) + * Thu Jun 02 2011 Robert Scheck - 1.11-1 - Upgrade to 1.11