commit: 374b9fbaf268c9e47dd5c0c07dedb8d705c41318 Author: Victor Payno <victor.payno <AT> sony <DOT> com> AuthorDate: Fri May 14 22:52:28 2021 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> 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 <victor.payno <AT> sony.com> Closes: https://github.com/gentoo/gentoo/pull/20811 Signed-off-by: Patrick McLean <chutzpah <AT> 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"
