summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-10-14 15:24:35 +0200
committerJeroen Roovers <jer@gentoo.org>2017-10-14 15:24:35 +0200
commitfa49bd03d6ed83cf14b30542dc1e57f9549d1154 (patch)
treefe4a55b5c903d1669d401e20c833eb27f730393b /net-analyzer
parentnet-analyzer/vnstat: Fix patches. (diff)
downloadgentoo-fa49bd03d6ed83cf14b30542dc1e57f9549d1154.tar.gz
gentoo-fa49bd03d6ed83cf14b30542dc1e57f9549d1154.tar.bz2
gentoo-fa49bd03d6ed83cf14b30542dc1e57f9549d1154.zip
net-analyzer/vnstat: Drop privileges by default.
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch15
-rw-r--r--net-analyzer/vnstat/vnstat-1.17-r3.ebuild (renamed from net-analyzer/vnstat/vnstat-1.17-r2.ebuild)1
2 files changed, 16 insertions, 0 deletions
diff --git a/net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch b/net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch
new file mode 100644
index 000000000000..c0446c3b3410
--- /dev/null
+++ b/net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch
@@ -0,0 +1,15 @@
+--- a/cfg/vnstat.conf
++++ b/cfg/vnstat.conf
+@@ -81,10 +81,10 @@
+ ##
+
+ # switch to given user when started as root (leave empty to disable)
+-DaemonUser ""
++DaemonUser "vnstat"
+
+ # switch to given user when started as root (leave empty to disable)
+-DaemonGroup ""
++DaemonGroup "vnstat"
+
+ # how often (in seconds) interface data is updated
+ UpdateInterval 30
diff --git a/net-analyzer/vnstat/vnstat-1.17-r2.ebuild b/net-analyzer/vnstat/vnstat-1.17-r3.ebuild
index 88ba28fdb0e4..6e0d7ba752b6 100644
--- a/net-analyzer/vnstat/vnstat-1.17-r2.ebuild
+++ b/net-analyzer/vnstat/vnstat-1.17-r3.ebuild
@@ -26,6 +26,7 @@ RDEPEND="
"
PATCHES=(
"${FILESDIR}"/${PN}-1.17-conf.patch
+ "${FILESDIR}"/${PN}-1.17-drop-root.patch
"${FILESDIR}"/${PN}-1.17-run.patch
)