Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/exabgp/files/
Date: Fri, 14 May 2021 23:49:38
Message-Id: 1621036157.374b9fbaf268c9e47dd5c0c07dedb8d705c41318.chutzpah@gentoo
1 commit: 374b9fbaf268c9e47dd5c0c07dedb8d705c41318
2 Author: Victor Payno <victor.payno <AT> sony <DOT> com>
3 AuthorDate: Fri May 14 22:52:28 2021 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Fri May 14 23:49:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=374b9fba
7
8 net-misc/exabgp: fix capsh usage
9
10 - --uid and --gid need numeric values
11
12 - using --gid or --groups results in "Failed to setgroups." if it is
13 placed afgter --uid or --user. setgroups needs to happen before the
14 user is changed to non-root.
15
16 Signed-off-by: Victor Payno <victor.payno <AT> sony.com>
17 Closes: https://github.com/gentoo/gentoo/pull/20811
18 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
19
20 net-misc/exabgp/files/exabgp.initd | 4 ++--
21 1 file changed, 2 insertions(+), 2 deletions(-)
22
23 diff --git a/net-misc/exabgp/files/exabgp.initd b/net-misc/exabgp/files/exabgp.initd
24 index e220108d826..c3e3d93a494 100644
25 --- a/net-misc/exabgp/files/exabgp.initd
26 +++ b/net-misc/exabgp/files/exabgp.initd
27 @@ -7,8 +7,8 @@
28
29 command="capsh"
30 command_args="
31 - --uid=${EXABGP_USER:-exabgp}
32 - --gid=${EXABGP_GROUP:-exabgp}
33 + --groups=${EXABGP_GROUP:=exabgp}
34 + --user=${EXABGP_USER:-exabgp}
35 --caps='cap_net_admin+epi cap_setuid+ep-i cap_setgid+ep-i'
36 -- -c \"/usr/bin/exabgp ${EXABGP_ARGS}\""
37 command_background="yes"