From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA6CD1396D9 for ; Sat, 14 Oct 2017 13:25:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D93672BC014; Sat, 14 Oct 2017 13:25:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7FD52BC014 for ; Sat, 14 Oct 2017 13:25:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AAE7033BEB4 for ; Sat, 14 Oct 2017 13:25:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 706CF310 for ; Sat, 14 Oct 2017 13:25:03 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1507987475.fa49bd03d6ed83cf14b30542dc1e57f9549d1154.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/vnstat/, net-analyzer/vnstat/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch net-analyzer/vnstat/vnstat-1.17-r2.ebuild net-analyzer/vnstat/vnstat-1.17-r3.ebuild X-VCS-Directories: net-analyzer/vnstat/ net-analyzer/vnstat/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: fa49bd03d6ed83cf14b30542dc1e57f9549d1154 X-VCS-Branch: master Date: Sat, 14 Oct 2017 13:25:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0b5fb5da-bf45-4db8-bc7e-320092cd80f1 X-Archives-Hash: 5ff3c40a1abe99f2ba1609d9f6e2fe73 commit: fa49bd03d6ed83cf14b30542dc1e57f9549d1154 Author: Jeroen Roovers gentoo org> AuthorDate: Sat Oct 14 13:24:35 2017 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sat Oct 14 13:24:35 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa49bd03 net-analyzer/vnstat: Drop privileges by default. Package-Manager: Portage-2.3.11, Repoman-2.3.3 net-analyzer/vnstat/files/vnstat-1.17-drop-root.patch | 15 +++++++++++++++ .../{vnstat-1.17-r2.ebuild => vnstat-1.17-r3.ebuild} | 1 + 2 files changed, 16 insertions(+) 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 00000000000..c0446c3b341 --- /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 similarity index 97% rename from net-analyzer/vnstat/vnstat-1.17-r2.ebuild rename to net-analyzer/vnstat/vnstat-1.17-r3.ebuild index 88ba28fdb0e..6e0d7ba752b 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 )