summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Payno <victor.payno@sony.com>2021-05-14 15:52:28 -0700
committerPatrick McLean <chutzpah@gentoo.org>2021-05-14 16:49:17 -0700
commit374b9fbaf268c9e47dd5c0c07dedb8d705c41318 (patch)
tree5cab2fd1b6305fbc555b972b5c5a4b9b101f4a9d
parentnet-misc/openssh-8.6_p1-r1: Fix REQUIRED_USE (bug #790092) (diff)
downloadgentoo-374b9fba.tar.gz
gentoo-374b9fba.tar.bz2
gentoo-374b9fba.zip
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 <victor.payno@sony.com> Closes: https://github.com/gentoo/gentoo/pull/20811 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r--net-misc/exabgp/files/exabgp.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-misc/exabgp/files/exabgp.initd b/net-misc/exabgp/files/exabgp.initd
index e220108d8262..c3e3d93a494e 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"