Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: Re: [gentoo-pms] [PATCH] pkg-mgr-commands.tex: Specify file ownership for dobin more accurately
Date: Sat, 26 Mar 2022 18:22:03
Message-Id: 7cab05c7ac50d9efd50298074664a74f4f6f8436.camel@gentoo.org
In Reply to: [gentoo-pms] [PATCH] pkg-mgr-commands.tex: Specify file ownership for dobin more accurately by "Ulrich Müller"
1 On Sat, 2022-03-26 at 11:10 +0100, Ulrich Müller wrote:
2 > In a non-prefix installation, files are to be owned by UID 0 / GID 0.
3 > This is also what is implemented in Portage's dobin command.
4 >
5 > Signed-off-by: Ulrich Müller <ulm@g.o>
6 > ---
7 > pkg-mgr-commands.tex | 2 +-
8 > 1 file changed, 1 insertion(+), 1 deletion(-)
9 >
10 > diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
11 > index 7f57539..a964859 100644
12 > --- a/pkg-mgr-commands.tex
13 > +++ b/pkg-mgr-commands.tex
14 > @@ -460,7 +460,7 @@ the current phase function has returned.
15 > \item[dobin] Installs the given files into \t{DESTTREE/bin}, where \t{DESTTREE} defaults to
16 > \t{/usr}. Gives the files mode \t{0755} and transfers file ownership to the superuser or its
17 > equivalent on the system or installation at hand. In a non-offset-prefix installation this
18 > - ownership is \t{root:root}, while in an offset-prefix aware installation this may be e.\,g.\
19 > + ownership is \t{0:0}, while in an offset-prefix aware installation this may be e.\,g.\
20 > \t{joe:users}. Failure behaviour is EAPI dependent as per section~\ref{sec:failure-behaviour}.
21 >
22 > \item[doconfd] Installs the given config files into \t{/etc/conf.d/}, by default with file mode
23
24 LGTM. I'm somewhat surprised this is the only place we specify
25 ownership.
26
27 --
28 Best regards,
29 Michał Górny