Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH 1/9] fcaps.eclass: Use UID 0 instead of root
Date: Sun, 27 Mar 2022 07:28:21
Message-Id: 20220327072735.9719-2-ulm@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/9] eclass: Use UID 0 instead of root and other fixes by "Ulrich Müller"
1 From: Haelwenn (lanodan) Monnier <contact@×××××××××.me>
2
3 Bug: https://bugs.gentoo.org/595908
4 Signed-off-by: Ulrich Müller <ulm@g.o>
5 ---
6 eclass/fcaps.eclass | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9 diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass
10 index 93aa7cd5928d..8ed27429c938 100644
11 --- a/eclass/fcaps.eclass
12 +++ b/eclass/fcaps.eclass
13 @@ -83,7 +83,7 @@ esac
14 #
15 # If the system is unable to set capabilities, it will use the specified user,
16 # group, and mode (presumably to make the binary set*id). The defaults there
17 -# are root:0 and 4711. Otherwise, the ownership and permissions will be
18 +# are 0:0 and 4711. Otherwise, the ownership and permissions will be
19 # unchanged.
20 fcaps() {
21 debug-print-function ${FUNCNAME} "$@"
22 @@ -94,7 +94,7 @@ fcaps() {
23 fi
24
25 # Process the user options first.
26 - local owner='root'
27 + local owner='0'
28 local group='0'
29 local mode='4711'
30 local caps_mode='711'
31 --
32 2.35.1