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 1216E1382C5 for ; Fri, 14 May 2021 23:49:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28B0CE0817; Fri, 14 May 2021 23:49:37 +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 B6A5BE0817 for ; Fri, 14 May 2021 23:49:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 2944A340DDF for ; Fri, 14 May 2021 23:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B0B0743 for ; Fri, 14 May 2021 23:49:33 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1621036157.374b9fbaf268c9e47dd5c0c07dedb8d705c41318.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/exabgp/files/exabgp.initd X-VCS-Directories: net-misc/exabgp/files/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 374b9fbaf268c9e47dd5c0c07dedb8d705c41318 X-VCS-Branch: master Date: Fri, 14 May 2021 23:49:33 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 33fb0164-94a1-428f-8461-852f26cf6411 X-Archives-Hash: 426ea118a3dbfc1daa081a82fcd51bc9 commit: 374b9fbaf268c9e47dd5c0c07dedb8d705c41318 Author: Victor Payno sony com> AuthorDate: Fri May 14 22:52:28 2021 +0000 Commit: Patrick McLean gentoo org> CommitDate: Fri May 14 23:49:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=374b9fba net-misc/exabgp: fix capsh usage - --uid and --gid need numeric values - using --gid or --groups results in "Failed to setgroups." if it is placed afgter --uid or --user. setgroups needs to happen before the user is changed to non-root. Signed-off-by: Victor Payno sony.com> Closes: https://github.com/gentoo/gentoo/pull/20811 Signed-off-by: Patrick McLean gentoo.org> net-misc/exabgp/files/exabgp.initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net-misc/exabgp/files/exabgp.initd b/net-misc/exabgp/files/exabgp.initd index e220108d826..c3e3d93a494 100644 --- a/net-misc/exabgp/files/exabgp.initd +++ b/net-misc/exabgp/files/exabgp.initd @@ -7,8 +7,8 @@ command="capsh" command_args=" - --uid=${EXABGP_USER:-exabgp} - --gid=${EXABGP_GROUP:-exabgp} + --groups=${EXABGP_GROUP:=exabgp} + --user=${EXABGP_USER:-exabgp} --caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i' -- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\"" command_background="yes"